mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Use module names as the module ident.
Some clients will reuse query windows as the client thinks its just a nick change if you have a existing query window with a module and a different one messages you. Fix that by using the modules name as the ident. Update tests to match new modules ident.
This commit is contained in:
@@ -296,15 +296,15 @@ TEST_F(ZNCTest, StatusEchoMessage) {
|
||||
client.Write("CAP REQ :echo-message");
|
||||
client.Write("PRIVMSG *status :blah");
|
||||
client.ReadUntil(":nick!user@irc.znc.in PRIVMSG *status :blah");
|
||||
client.ReadUntil(":*status!znc@znc.in PRIVMSG nick :Unknown command");
|
||||
client.ReadUntil(":*status!status@znc.in PRIVMSG nick :Unknown command");
|
||||
client.Write("znc delnetwork test");
|
||||
client.ReadUntil("Network deleted");
|
||||
auto client2 = LoginClient();
|
||||
client2.Write("PRIVMSG *status :blah2");
|
||||
client2.ReadUntil(":*status!znc@znc.in PRIVMSG nick :Unknown command");
|
||||
client2.ReadUntil(":*status!status@znc.in PRIVMSG nick :Unknown command");
|
||||
auto client3 = LoginClient();
|
||||
client3.Write("PRIVMSG *status :blah3");
|
||||
client3.ReadUntil(":*status!znc@znc.in PRIVMSG nick :Unknown command");
|
||||
client3.ReadUntil(":*status!status@znc.in PRIVMSG nick :Unknown command");
|
||||
}
|
||||
|
||||
TEST_F(ZNCTest, MoveChannels) {
|
||||
|
||||
Reference in New Issue
Block a user