diff options
Diffstat (limited to 'modules/botserv')
| -rw-r--r-- | modules/botserv/bs_control.cpp | 6 | ||||
| -rw-r--r-- | modules/botserv/bs_kick.cpp | 8 |
2 files changed, 4 insertions, 10 deletions
diff --git a/modules/botserv/bs_control.cpp b/modules/botserv/bs_control.cpp index 1784914b6..4847c8470 100644 --- a/modules/botserv/bs_control.cpp +++ b/modules/botserv/bs_control.cpp @@ -111,11 +111,7 @@ public: return; } - message = message.replace_all_cs("\1", ""); - if (message.empty()) - return; - - IRCD->SendAction(*ci->bi, ci->name, "%s", message.c_str()); + IRCD->SendPrivmsg(*ci->bi, ci->name, Anope::FormatCTCP("ACTION", message)); ci->bi->lastmsg = Anope::CurTime; bool override = !source.AccessFor(ci).HasPriv("SAY"); diff --git a/modules/botserv/bs_kick.cpp b/modules/botserv/bs_kick.cpp index 7d67a6577..f2a39dbf1 100644 --- a/modules/botserv/bs_kick.cpp +++ b/modules/botserv/bs_kick.cpp @@ -1215,11 +1215,9 @@ public: /* 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[realbuf.length() - 1] == '\1') - { - realbuf.erase(0, 8); - realbuf.erase(realbuf.length() - 1); - } + Anope::string ctcpname, ctcpbody; + if (Anope::ParseCTCP(msg, ctcpname, ctcpbody) && ctcpname.equals_ci("ACTION")) + realbuf = ctcpbody; if (realbuf.empty()) return; |
