From 52d9ed428f10ea766d72123ccaf2d5b3b44c7483 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 25 Nov 2010 22:59:39 -0600 Subject: [PATCH] Fixed handling pings and ctcps to channels --- src/botserv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/botserv.cpp b/src/botserv.cpp index cf5d6fa10..df1476dc8 100644 --- a/src/botserv.cpp +++ b/src/botserv.cpp @@ -80,7 +80,7 @@ void botchanmsgs(User *u, ChannelInfo *ci, const Anope::string &buf) { Anope::string ctcp = buf; ctcp.erase(ctcp.begin()); - ctcp.erase(ctcp.end() - 1); + ctcp.erase(ctcp.length() - 1); ircdproto->SendCTCP(ci->bi, u->nick, "%s", ctcp.c_str()); } @@ -93,7 +93,7 @@ void botchanmsgs(User *u, ChannelInfo *ci, const Anope::string &buf) if (!realbuf.substr(0, 8).equals_ci("\1ACTION ") && realbuf[buf.length() - 1] == '\1') { realbuf.erase(0, 8); - realbuf.erase(realbuf.end()); + realbuf.erase(realbuf.length() - 1); was_action = true; }