CTCP sent to *status shouldn't reach server

This commit is contained in:
Alexey Sokolov
2025-04-11 21:45:45 +01:00
parent f93829e3b3
commit ef4b59005c
2 changed files with 25 additions and 5 deletions
+11
View File
@@ -1029,5 +1029,16 @@ TEST_F(ZNCTest, TagMsg) {
client.ReadUntil("@bar TAGMSG #bar");
}
TEST_F(ZNCTest, StatusAction) {
auto znc = Run();
auto ircd = ConnectIRCd();
auto client = LoginClient();
ircd.Write("001 nick Welcome");
client.Write("PRIVMSG *status :\1ACTION waves\1");
client.Write("PRIVMSG *status :\1VERSION\1");
ASSERT_THAT(ircd.ReadRemainder().toStdString(), Not(HasSubstr("PRIVMSG")));
}
} // namespace
} // namespace znc_inttest