Sébastien Helleu
3cd97b5131
tests: add missing include of string.h
2021-10-14 21:08:28 +02:00
Sébastien Helleu
d8b8bf5a84
tests: check displayed message/error for all simulated IRC commands received
2021-10-14 21:00:47 +02:00
Sébastien Helleu
ed9104fbea
irc: fix parsing of CAP message when there is no prefix ( closes #1707 )
2021-10-09 11:27:51 +02:00
Sébastien Helleu
5fb7ebdfce
irc: fix send of empty JOIN when connecting to a server with only parted channels ( closes #1638 )
2021-09-03 13:43:07 +02:00
Sébastien Helleu
8e676edd1a
irc: save CLIENTTAGDENY from message 005 in server, do not send typing messages if "typing" client tag is denied
2021-08-08 18:37:15 +02:00
Sébastien Helleu
791b910a77
irc: fix SASL authentication when AUTHENTICATE message is received with a server name ( closes #1679 )
2021-08-03 19:58:13 +02:00
Sébastien Helleu
7c83ee02f2
tests: add tests on typing plugin functions
2021-07-04 13:27:33 +02:00
Sébastien Helleu
22a7e18842
irc: add support of capability "message-tags" ( closes #1654 )
2021-06-24 21:04:52 +02:00
Sébastien Helleu
b1cf12700d
irc: add keys/values with tags in output of irc_message_parse_to_hashtable (issue #1654 )
...
Key is "tag_xxx" (where "xxx" is the name of tag) and value is the unescaped
tag value.
2021-06-24 21:02:03 +02:00
Sébastien Helleu
8ea1ee06e5
irc: add support of TAGMSG messages (issue #1654 )
2021-06-24 21:01:22 +02:00
Sébastien Helleu
23c46c3f2b
irc: escape/unescape IRC message tags values (issue #1654 )
...
Spec: https://ircv3.net/specs/extensions/message-tags#escaping-values
2021-06-24 20:59:21 +02:00
Sébastien Helleu
3d3cdf3884
tests: fix modifier name in comment
2021-06-21 19:58:53 +02:00
Sébastien Helleu
ef318cb70c
irc: enable all capabilities by default (supported by both server and WeeChat) ( closes #320 )
...
Capabilities can be excluded with the format: "*,!account-*,!extended-join".
2021-06-19 18:22:49 +02:00
Sébastien Helleu
70b66c4f6b
irc: add command /setname, add support of message and capability "setname" ( closes #1653 )
2021-06-15 18:56:41 +02:00
Sébastien Helleu
b8baee1c06
irc: add support of FAIL/WARN/NOTE messages (issue #1653 )
...
Spec: https://ircv3.net/specs/extensions/standard-replies
2021-06-15 18:49:49 +02:00
Sébastien Helleu
18c82fc5c7
tests: replace freenode by libera in tests
2021-05-25 13:38:12 +02:00
Sébastien Helleu
ae39b7ce61
tests: fix if/else blocks in trigger tests
2021-04-11 10:42:24 +02:00
Sébastien Helleu
e58c827c91
trigger: add tests on main trigger functions
2021-04-11 09:20:49 +02:00
Sébastien Helleu
a34959a619
irc: add info "irc_is_message_ignored"
2021-02-03 18:30:32 +01:00
Sébastien Helleu
efc7a588d6
core: update copyright dates
2021-01-02 21:34:16 +01:00
Sébastien Helleu
1c5e5824e7
tests: run callback when resetting options in tests
2020-10-03 14:40:59 +02:00
Sébastien Helleu
0cc5df6649
irc: send all channels in a single JOIN command when reconnecting to the server ( closes #1551 )
2020-08-05 20:05:36 +02:00
Sébastien Helleu
5b151d1639
irc: check that the first nick char is not a prefix char or chantype in function irc_nick_is_nick
2020-06-21 10:22:37 +02:00
Sébastien Helleu
4a42cda3a5
irc: change default chantypes from "#&+!" to "#&"
...
The default chantypes was conflicting with
irc_server_prefix_chars_default ("@+").
2020-06-21 10:22:04 +02:00
Sébastien Helleu
9446610452
tests: add test of function irc_nick_is_nick with invalid UTF-8 string
2020-06-20 17:44:48 +02:00
Sébastien Helleu
12051a506d
irc: add support of UTF8MAPPING, add support of optional server in info "irc_is_nick" ( closes #1528 )
2020-06-20 17:28:28 +02:00
Sébastien Helleu
bf964de939
tests: add tests on IRC function irc_channel_is_channel
2020-06-20 12:04:40 +02:00
Sébastien Helleu
e41eeaf203
tests: add tests on IRC command ACCOUNT with colon before the account name
2020-06-16 08:07:55 +02:00
Sébastien Helleu
62ccee9505
tests: run tests on plugins only if the plugins are enabled and compiled
2020-05-17 15:29:06 +02:00
Sébastien Helleu
60b75f4677
tests: add tests on functions relay_auth_password_hash_algo_search and relay_auth_generate_nonce
2020-04-20 07:16:08 +02:00
Sébastien Helleu
d38701f99f
tests: reduce number of iterations in PBKDF2 tests from 100000 to 1000
...
This speeds up tests by about 30%.
2020-04-19 10:56:25 +02:00
Sébastien Helleu
bfe22fc66a
tests: remove obsolete file test-relay-weechat-protocol.cpp
2020-04-19 10:56:11 +02:00
Sébastien Helleu
9fa3609c85
relay: add command "handshake" in weechat relay protocol and nonce to prevent replay attacks ( closes #1474 )
...
This introduces a new command called "handshake" in the weechat relay protocol.
It should be sent by the client before the "init" command, to negotiate the way
to authenticate with a password.
3 new options are added:
* relay.network.auth_password
* relay.network.hash_iterations
* relay.network.nonce_size
2020-04-14 21:38:12 +02:00
Sébastien Helleu
c59f812c74
tests: add tests on function irc_protocol_cb_353 with option irc.look.color_nicks_in_names set to on
2020-03-31 21:16:09 +02:00
Sébastien Helleu
eb7b12f0da
tests: add tests on IRC color functions
...
Functions tested:
- irc_color_convert_rgb2irc
- irc_color_convert_term2irc
- irc_color_for_tags
- irc_color_modifier_cb
- irc_color_weechat_add_to_infolist
2020-03-30 20:58:16 +02:00
Sébastien Helleu
052d4d1fc0
tests: add test with remapped color in function irc_color_decode
2020-03-30 20:55:43 +02:00
Sébastien Helleu
8738196b68
tests: add tests on remaining IRC protocol functions and callbacks
2020-03-28 16:06:45 +01:00
Sébastien Helleu
f072eb8d78
tests: add tests on function irc_protocol_get_message_tags
2020-03-28 13:40:39 +01:00
Sébastien Helleu
4245641767
tests: add tests on function irc_protocol_cb_ping
2020-03-26 23:05:34 +01:00
Sébastien Helleu
b82a887f2a
tests: add tests on function irc_protocol_cb_part
2020-03-25 20:48:54 +01:00
Sébastien Helleu
cecbad1803
tests: add test with no arguments for AWAY command
2020-03-24 16:58:11 +01:00
Sébastien Helleu
9fac350b3f
tests: add tests on IRC protocol functions with not enough arguments
2020-03-24 16:56:57 +01:00
Sébastien Helleu
4480c7b7cc
irc: split AUTHENTICATE message in 400-byte chunks ( closes #1459 )
2020-03-21 14:28:53 +01:00
Sébastien Helleu
5c1dfcbe5b
tests: add tests on functions irc_protocol_cb_mode and irc_protocol_cb_nick
2020-03-19 23:01:59 +01:00
Sébastien Helleu
b45d461c3a
tests: add tests on functions irc_protocol_cb_kick and irc_protocol_cb_kill
2020-03-18 22:27:15 +01:00
Sébastien Helleu
a709dd05a6
tests: add tests on function irc_protocol_cb_join
2020-03-17 20:54:07 +01:00
Sébastien Helleu
332a4adc26
tests: add tests on function irc_protocol_cb_chghost
2020-03-16 20:49:50 +01:00
Sébastien Helleu
851d1fb00a
tests: rename function run_cmd_server to server_recv
2020-03-15 07:19:16 +01:00
Sébastien Helleu
aa3941fee2
tests: always run callback in calls to function config_file_option_set
2020-03-13 23:12:22 +01:00
Sébastien Helleu
9545d37ab0
tests: add tests on IRC protocol functions and some callbacks
...
Functions tested:
* irc_protocol_is_numeric_command
* irc_protocol_log_level_for_command
* irc_protocol_tags
* irc_protocol_nick_address
* irc_protocol_cb_account
* irc_protocol_cb_away
* irc_protocol_cb_001
* irc_protocol_cb_005
2020-03-11 20:53:49 +01:00