diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-07-21 11:16:50 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-07-21 11:16:50 +0200 |
commit | d5c4342bceadc4d3c3997986cb48f3bd4235e8f8 (patch) | |
tree | 584befe3297698c8a5ca5c9f4b9ab23207b1fbb1 /tests/unit | |
parent | 569c93c6fb440b986d456ddd2d5dd689ff78fa81 (diff) | |
download | weechat-d5c4342bceadc4d3c3997986cb48f3bd4235e8f8.zip |
irc: fix display of TOPIC message with an empty trailing parameter
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index 838a0cb8c..9d3c34864 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -1966,6 +1966,11 @@ TEST(IrcProtocolWithServer, topic) CHECK_CHAN("-- alice has unset topic for #test"); POINTERS_EQUAL(NULL, ptr_channel->topic); + /* empty topic (with empty trailing parameter) */ + RECV(":alice!user@host TOPIC #test :"); + CHECK_CHAN("-- alice has unset topic for #test"); + POINTERS_EQUAL(NULL, ptr_channel->topic); + /* new topic */ RECV(":alice!user@host TOPIC #test :new topic "); CHECK_CHAN("-- alice has changed topic for #test to \"new topic \""); |