1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 02:26:38 +02:00

Fixed handling pings and ctcps to channels

This commit is contained in:
Adam
2010-11-25 22:59:39 -06:00
parent 8f825821e0
commit 52d9ed428f
+2 -2
View File
@@ -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;
}