irc: strip spaces at beginning/end of addresses in server option "addresses" (closes #195)

v2.8-utf8proc
Sébastien Helleu 2019-06-15 20:50:48 +02:00
parent 9178156354
commit 0d9b7ec954
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ Bug fixes::
* core: replace char "," by "~" in color codes to separate foreground from background (issue #1264)
* alias: remove default aliases /AME and /AMSG (issue #1355)
* irc: strip spaces at beginning/end of addresses in server option "addresses" (issue #195)
* irc: fix display of enabled/disabled client capabilities received in command CAP ACK (issue #151)
[[v2.5]]

View File

@ -616,7 +616,7 @@ irc_server_set_addresses (struct t_irc_server *server, const char *addresses)
server->addresses_array = weechat_string_split (
addresses_eval,
",",
NULL,
" ",
WEECHAT_STRING_SPLIT_STRIP_LEFT
| WEECHAT_STRING_SPLIT_STRIP_RIGHT
| WEECHAT_STRING_SPLIT_COLLAPSE_SEPS,