mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user