diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-14 09:16:40 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-14 15:32:39 +0200 |
commit | 128fbe0d5beb6050bbf775e81a4b693ef8d40d42 (patch) | |
tree | e299732a8822ff3cc8272fc3e44235edb46ac799 /tests/unit/plugins | |
parent | 1116474c45ebb00011ec8c1694dda230251f17b3 (diff) | |
download | weechat-128fbe0d5beb6050bbf775e81a4b693ef8d40d42.zip |
irc: add support of "LINELEN" in message 005 (max message length in bytes) (closes #1927)
Diffstat (limited to 'tests/unit/plugins')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index 9e59f809d..3026ed00a 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -62,7 +62,7 @@ extern char *irc_protocol_cap_to_enable (const char *capabilities, #define IRC_FAKE_SERVER "fake" #define IRC_MSG_005 "PREFIX=(ohv)@%+ MAXLIST=bqeI:100 MODES=4 " \ "NETWORK=StaticBox STATUSMSG=@+ CALLERID=g " \ - "CASEMAPPING=strict-rfc1459 NICKLEN=30 MAXNICKLEN=31 " \ + "CASEMAPPING=strict-rfc1459 LINELEN=4096 NICKLEN=30 MAXNICKLEN=31 " \ "USERLEN=16 HOSTLEN=32 CHANNELLEN=50 TOPICLEN=390 DEAF=D " \ "CHANTYPES=# CHANMODES=eIbq,k,flj,CFLMPQScgimnprstuz " \ "MONITOR=100" @@ -2291,6 +2291,7 @@ TEST(IrcProtocolWithServer, 005_full) POINTERS_EQUAL(NULL, ptr_server->prefix_modes); POINTERS_EQUAL(NULL, ptr_server->prefix_chars); + LONGS_EQUAL(0, ptr_server->msg_max_length); LONGS_EQUAL(0, ptr_server->nick_max_length); LONGS_EQUAL(0, ptr_server->user_max_length); LONGS_EQUAL(0, ptr_server->host_max_length); @@ -2305,6 +2306,7 @@ TEST(IrcProtocolWithServer, 005_full) STRCMP_EQUAL("ohv", ptr_server->prefix_modes); STRCMP_EQUAL("@%+", ptr_server->prefix_chars); + LONGS_EQUAL(4096, ptr_server->msg_max_length); LONGS_EQUAL(30, ptr_server->nick_max_length); LONGS_EQUAL(16, ptr_server->user_max_length); LONGS_EQUAL(32, ptr_server->host_max_length); @@ -2320,6 +2322,7 @@ TEST(IrcProtocolWithServer, 005_full) STRCMP_EQUAL("ohv", ptr_server->prefix_modes); STRCMP_EQUAL("@%+", ptr_server->prefix_chars); + LONGS_EQUAL(4096, ptr_server->msg_max_length); LONGS_EQUAL(30, ptr_server->nick_max_length); LONGS_EQUAL(16, ptr_server->user_max_length); LONGS_EQUAL(32, ptr_server->host_max_length); |