Call CTCP callback for actions too, as it was before switch to CMessage.

Partyline had both of callbacks, one of which is redundant.

Fix #1134
Fix #1190
This commit is contained in:
Alexey Sokolov
2015-11-29 00:56:26 +00:00
parent 391f89d6e2
commit 569f057561
3 changed files with 19 additions and 4 deletions
+15
View File
@@ -1252,4 +1252,19 @@ TEST_F(ZNCTest, ShellModule) {
client.ReadUntil("PRIVMSG nick :znc$");
}
TEST_F(ZNCTest, WatchModule) {
// TODO test other messages
// TODO test options
auto znc = Run();Z;
auto ircd = ConnectIRCd();Z;
auto client = LoginClient();Z;
client.Write("znc loadmod watch");
client.Write("PRIVMSG *watch :add *");
client.ReadUntil("Adding entry:");
ircd.Write(":server 001 nick :Hello");
ircd.Write(":nick JOIN :#znc");
ircd.Write(":n!i@h PRIVMSG #znc :\001ACTION foo\001");
client.ReadUntil(":$*!watch@znc.in PRIVMSG nick :* CTCP: n [ACTION foo] to [#znc]");
}
} // namespace