limiter on message processing to stop it relaying error state messages from secondlife
This commit is contained in:
parent
5f716e1cfe
commit
93e95c98d0
1 changed files with 3 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ namespace BSB.bottypes
|
|||
{
|
||||
public abstract class MessageSwitcherBot : EventsBot
|
||||
{
|
||||
string[] hard_blocked_agents = new string[] { "secondlife", "second life"};
|
||||
protected override void ChatInputHandler(object sender, ChatEventArgs e)
|
||||
{
|
||||
bool fromme = false;
|
||||
|
|
@ -26,7 +27,8 @@ namespace BSB.bottypes
|
|||
}
|
||||
if (e.Message != "")
|
||||
{
|
||||
if (e.FromName.ToLowerInvariant() != "secondlife")
|
||||
string name_lower = e.FromName.ToLowerInvariant();
|
||||
if (hard_blocked_agents.Contains(name_lower) == false)
|
||||
{
|
||||
BotChatControler(e.Message, e.FromName, e.SourceID, av, false, UUID.Zero, true, fromme);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue