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
Sébastien Helleu
2d2b49bfaa
relay: accept hash of password in init command with option "password_hash"
...
Allowed algorithms are:
* PBKDF2 (SHA256 or SHA512, salt, iterations)
* SHA256
* SHA512
2020-03-02 00:46:10 +01:00
Sébastien Helleu
39f2591cf5
tests: add tests on ANSI default text/background colors
2020-02-08 10:29:07 +01:00
Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
ae38b11407
irc: add "user" in output of irc_message_parse ( closes #136 )
2019-09-27 20:52:00 +02:00
Sébastien Helleu
b4215ee466
tests: add tests on IRC function irc_nick_is_nick
2019-08-06 22:13:10 +02:00
Sébastien Helleu
b6cc5ef70f
irc: fix length of user/nick/host in split of messages ( closes #1387 )
2019-08-04 16:39:18 +02:00
Sébastien Helleu
59ba378eec
tests: add missing space after name of function
2019-08-04 14:39:58 +02:00
Sébastien Helleu
4fa62a83f1
tests: add unit tests on IRC functions irc_message_split* (issue #1387 )
2019-08-04 14:39:58 +02:00
Sébastien Helleu
067f237ec3
tests: add unit tests on IRC function irc_message_convert_charset
2019-08-04 14:04:45 +02:00
Sébastien Helleu
c46255b1d0
tests: add unit tests on IRC functions irc_message_parse and irc_message_parse_to_hashtable
2019-08-03 13:57:50 +02:00
Sébastien Helleu
d79e0cbd31
tests: add unit tests on IRC function irc_message_replace_vars
2019-08-03 11:34:42 +02:00
Sébastien Helleu
28d79d0c93
tests: add unit tests on IRC functions irc_message_get_{nick,address}_from_host
2019-08-03 11:30:35 +02:00
Sébastien Helleu
82a92bd4e9
irc: add unit tests on ignore functions
2019-07-10 19:20:09 +02:00
Sébastien Helleu
2073408b86
irc: fix parsing of MODE command when there are colons after the first mode argument ( closes #1296 )
2019-05-10 19:29:58 +02:00
Sébastien Helleu
142d312ad7
tests: add missing include of stdio.h
2019-01-20 15:59:04 +01:00
Sébastien Helleu
98249ada86
tests: add tests on IRC color functions
...
Functions tested:
- irc_color_decode
- irc_color_encode
- irc_color_decode_ansi
2019-01-20 15:17:21 +01:00
Sébastien Helleu
34a6fce134
tests: add tests on function irc_protocol_parse_time
2019-01-13 14:47:35 +01:00
Sébastien Helleu
c96e2f3593
tests: add tests on function irc_config_check_autojoin
2019-01-11 22:27:28 +01:00