diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index 3da04a9f7..9e3088039 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -443,8 +443,14 @@ TEST(IrcProtocolWithServer, account_without_account_notify_cap) server_recv (":alice!user@host ACCOUNT *"); POINTERS_EQUAL(NULL, ptr_nick->account); + server_recv (":alice!user@host ACCOUNT :*"); + POINTERS_EQUAL(NULL, ptr_nick->account); + server_recv (":alice!user@host ACCOUNT new_account"); POINTERS_EQUAL(NULL, ptr_nick->account); + + server_recv (":alice!user@host ACCOUNT :new_account"); + POINTERS_EQUAL(NULL, ptr_nick->account); } /* @@ -469,11 +475,17 @@ TEST(IrcProtocolWithServer, account_with_account_notify_cap) server_recv (":alice!user@host ACCOUNT new_account"); STRCMP_EQUAL("new_account", ptr_nick->account); - server_recv (":alice!user@host ACCOUNT new_account2"); + server_recv (":alice!user@host ACCOUNT :new_account2"); STRCMP_EQUAL("new_account2", ptr_nick->account); server_recv (":alice!user@host ACCOUNT *"); POINTERS_EQUAL(NULL, ptr_nick->account); + + server_recv (":alice!user@host ACCOUNT :new_account3"); + STRCMP_EQUAL("new_account3", ptr_nick->account); + + server_recv (":alice!user@host ACCOUNT :*"); + POINTERS_EQUAL(NULL, ptr_nick->account); } /*