1
0
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:
Adam-
2009-11-05 13:35:09 +00:00
parent 187868def9
commit 95a017db9f
+3
View File
@@ -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());
}