diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-05 03:32:33 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-05 03:32:33 +0000 |
commit | 187868def97ba9918de44a89003ac56878f38460 (patch) | |
tree | 1106aac5844f60daa316582b858bcf48a189700f /src | |
parent | 154b0ded376a92b65909b2b39167c204b982b7a9 (diff) |
Removed trailing -'s on mode strings sent in check_modes
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2609 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/chanserv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chanserv.c b/src/chanserv.c index c9c2b578a..a00b83f0c 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -904,8 +904,8 @@ void check_modes(Channel * c) } } - if (modebuf == "-") - return; + if (modebuf[modebuf.length() - 1] == '-') + modebuf.erase(modebuf.length() - 1); ircdproto->SendMode((ci ? whosends(ci) : findbot(s_OperServ)), c->name, "%s%s", modebuf.c_str(), argbuf.empty() ? "" : argbuf.c_str()); } |