diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-06-21 21:35:29 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-06-24 21:01:22 +0200 |
commit | 8ea1ee06e5ac18a000788851f807cb4fad3e076c (patch) | |
tree | d2c898ef3b1fc38a9d6bf1301ee74496fae37a9c /tests/unit/plugins | |
parent | 23c46c3f2bfa735d30e815b9ff45c8008adbcbc5 (diff) | |
download | weechat-8ea1ee06e5ac18a000788851f807cb4fad3e076c.zip |
irc: add support of TAGMSG messages (issue #1654)
Diffstat (limited to 'tests/unit/plugins')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index 04eaf6b4b..34c310c9c 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -1305,6 +1305,28 @@ TEST(IrcProtocolWithServer, setname_with_setname_cap) /* * Tests functions: + * irc_protocol_cb_tagmsg + */ + +TEST(IrcProtocolWithServer, tagmsg) +{ + server_recv (":server 001 alice"); + + server_recv (":alice!user@host JOIN #test"); + server_recv (":bob!user@host JOIN #test"); + + /* not enough arguments */ + server_recv (":bob!user@host TAGMSG"); + + /* no tags */ + server_recv (":bob!user@host TAGMSG #test"); + + /* with tags */ + server_recv ("@tag1=123;tag2=456 :bob!user@host TAGMSG #test"); +} + +/* + * Tests functions: * irc_protocol_cb_topic */ |