diff options
author | Adam <Adam@anope.org> | 2011-01-11 22:19:46 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-01-11 22:19:46 -0500 |
commit | e490202a1b6922afda32d871293da6a531fa86df (patch) | |
tree | 7ab0d5fdaa54289a61b1676dc0278ca074ad5eae /src/botserv.cpp | |
parent | fd2412a5f65cfe171c0e4511a78388e4ddfa5903 (diff) |
Bug #1230 - Fixed unknown CTCPs from crashing services
Diffstat (limited to 'src/botserv.cpp')
-rw-r--r-- | src/botserv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/botserv.cpp b/src/botserv.cpp index 23482f76c..6eaa330c9 100644 --- a/src/botserv.cpp +++ b/src/botserv.cpp @@ -90,7 +90,7 @@ void botchanmsgs(User *u, ChannelInfo *ci, const Anope::string &buf) /* If it's a /me, cut the CTCP part because the ACTION will cause * problems with the caps or badwords kicker */ - if (!realbuf.substr(0, 8).equals_ci("\1ACTION ") && realbuf[buf.length() - 1] == '\1') + if (realbuf.substr(0, 8).equals_ci("\1ACTION ") && realbuf[realbuf.length() - 1] == '\1') { realbuf.erase(0, 8); realbuf.erase(realbuf.length() - 1); |