mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 03:59:03 -04:00
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:
parent
9c213ae9c6
commit
f3abcc8bef
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user