1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 05:33:13 +02:00

Rework how CTCP messages are sent and received.

This commit is contained in:
Sadie Powell
2024-06-24 14:29:55 +01:00
parent 6e5713d64a
commit 693eeed762
8 changed files with 90 additions and 69 deletions
+3 -5
View File
@@ -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;