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
@ -3489,11 +3489,14 @@ class ModuleSpanningTree : public Module
|
||||
}
|
||||
else if (target_type == TYPE_SERVER)
|
||||
{
|
||||
char* target = (char*)dest;
|
||||
std::deque<std::string> par;
|
||||
par.push_back(target);
|
||||
par.push_back(":"+text);
|
||||
DoOneToMany(user->nick,"NOTICE",par);
|
||||
if (user->fd > -1)
|
||||
{
|
||||
char* target = (char*)dest;
|
||||
std::deque<std::string> par;
|
||||
par.push_back(target);
|
||||
par.push_back(":"+text);
|
||||
DoOneToMany(user->nick,"NOTICE",par);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -3534,11 +3537,14 @@ class ModuleSpanningTree : public Module
|
||||
}
|
||||
else if (target_type == TYPE_SERVER)
|
||||
{
|
||||
char* target = (char*)dest;
|
||||
std::deque<std::string> par;
|
||||
par.push_back(target);
|
||||
par.push_back(":"+text);
|
||||
DoOneToMany(user->nick,"PRIVMSG",par);
|
||||
if (user->fd > -1)
|
||||
{
|
||||
char* target = (char*)dest;
|
||||
std::deque<std::string> par;
|
||||
par.push_back(target);
|
||||
par.push_back(":"+text);
|
||||
DoOneToMany(user->nick,"PRIVMSG",par);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user