mirror of
https://github.com/anope/anope.git
synced 2026-07-03 12:23:13 +02:00
Dont allow sending empty mode strings in check_modes
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2610 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -906,6 +906,9 @@ void check_modes(Channel * c)
|
||||
|
||||
if (modebuf[modebuf.length() - 1] == '-')
|
||||
modebuf.erase(modebuf.length() - 1);
|
||||
|
||||
if (modebuf.empty())
|
||||
return;
|
||||
|
||||
ircdproto->SendMode((ci ? whosends(ci) : findbot(s_OperServ)), c->name, "%s%s", modebuf.c_str(), argbuf.empty() ? "" : argbuf.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user