1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 22:26:39 +02:00

Bug #1230 - Fixed unknown CTCPs from crashing services

(cherry picked from commit e490202a1b)
This commit is contained in:
Adam
2011-01-11 22:19:46 -05:00
parent 1bdadde68a
commit 11a144ad61
+1 -1
View File
@@ -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);