summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-01-11 22:19:46 -0500
committerAdam <Adam@anope.org>2011-01-11 22:20:36 -0500
commit11a144ad6145973a5c64d0b170c3d0ef7abb5254 (patch)
treefa76397b080c7bc4084b1047c86f59799a808688
parent1bdadde68aed5a93225a5a625484505f1126a8a9 (diff)
Bug #1230 - Fixed unknown CTCPs from crashing services
(cherry picked from commit e490202a1b6922afda32d871293da6a531fa86df)
-rw-r--r--src/botserv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/botserv.cpp b/src/botserv.cpp
index 9149a0027..5db1f9695 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);