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

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