Prevent notice loops on servermasks

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4541 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-07-25 10:35:40 +00:00
parent 9c213ae9c6
commit f3abcc8bef

View File

@ -3488,6 +3488,8 @@ class ModuleSpanningTree : public Module
}
}
else if (target_type == TYPE_SERVER)
{
if (user->fd > -1)
{
char* target = (char*)dest;
std::deque<std::string> par;
@ -3496,6 +3498,7 @@ class ModuleSpanningTree : public Module
DoOneToMany(user->nick,"NOTICE",par);
}
}
}
virtual void OnUserMessage(userrec* user, void* dest, int target_type, const std::string &text, char status)
{
@ -3533,6 +3536,8 @@ class ModuleSpanningTree : public Module
}
}
else if (target_type == TYPE_SERVER)
{
if (user->fd > -1)
{
char* target = (char*)dest;
std::deque<std::string> par;
@ -3541,6 +3546,7 @@ class ModuleSpanningTree : public Module
DoOneToMany(user->nick,"PRIVMSG",par);
}
}
}
virtual void OnBackgroundTimer(time_t curtime)
{