1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 22:16:37 +02:00

Bug #1230 - Fixed unknown CTCPs from crashing services

This commit is contained in:
Adam
2011-01-11 22:19:46 -05:00
parent fd2412a5f6
commit e490202a1b
+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);