diff options
author | Adam <Adam@anope.org> | 2010-11-25 22:59:39 -0600 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-11-25 22:59:39 -0600 |
commit | 52d9ed428f10ea766d72123ccaf2d5b3b44c7483 (patch) | |
tree | 56bc4e3327ef32c72d16c81177429ec4e93629b1 | |
parent | 8f825821e029695d39259f24ee02406d25aefd6b (diff) |
Fixed handling pings and ctcps to channels
-rw-r--r-- | src/botserv.cpp | 4 |
1 files 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; } |