Sébastien Helleu
5c2c19c0cd
irc: fix compilation warning when gnutls is not found
2019-03-12 22:26:28 +01:00
Sébastien Helleu
92e176ab89
relay: use empty value by default for option relay.weechat.commands (issue #928 )
...
The relay client is supposed to be safe by default, and the relay connection
should be protected by the different ways (restriction on IP address, SSL,
strong password, Time-based One-Time Password, local bind address and use of
SSH tunnel…).
So this option lets the user add extra security by allowing only some
commands (whitelist), or allowing any commands except a list of given
commands (blacklist).
2019-03-11 21:12:23 +01:00
Sébastien Helleu
e44c4904c3
relay: add forbidden commands /key and /trigger in weechat protocol (issue #928 )
2019-03-10 22:58:50 +01:00
Sébastien Helleu
508f224af9
relay: add forbidden commands /wait and /repeat in weechat protocol (issue #928 )
2019-03-10 18:29:22 +01:00
Sébastien Helleu
2b70d71aa1
core: replace argument "keep_eol" by "flags" in function string_split ( closes #1322 )
2019-03-10 18:29:16 +01:00
Sébastien Helleu
8aa5f5375e
core: add value -1 for keep_eol in function string_strip (issue #1322 )
...
The value -1 means it's a standard split, but empty items are kept, and
separators are not removed at beginning/end of string.
2019-03-09 21:56:05 +01:00
Sébastien Helleu
dd44c1db16
relay: add extra forbidden commands in weechat protocol (issue #928 )
...
Commands were already forbidden (option relay.weechat.commands):
- /exec
- /upgrade
- /quit
These extra commands are now forbidden by default:
- /fset
- /set
- /unset
- /plugin
- /script
- /python
- /perl
- /ruby
- /lua
- /tcl
- /guile
- /javascript
- /php
- /secure
2019-03-09 17:54:06 +01:00
Sébastien Helleu
2f5aa3b509
core: use bitwise shift operator to define flag constants
2019-03-02 11:09:52 +01:00
Matthew Martin
77a9322bbf
irc: quote argument to NICK
2019-02-28 18:55:26 -06:00
Sébastien Helleu
c91e47c414
script: use SHA-512 instead of MD5 for script checksum
...
Related to weechat/weechat.org@66a8b72ab1
2019-02-28 20:55:10 +01:00
Sébastien Helleu
d290de2cba
relay: add option relay.weechat.commands ( closes #928 )
2019-02-28 20:24:25 +01:00
Sébastien Helleu
80b980b2af
api: add function command_options (issue #928 )
2019-02-28 20:19:18 +01:00
Sébastien Helleu
64043d5a6c
php: fix memory leak in functions using hashtable parameters
...
Functions fixed in PHP plugin:
- string_eval_expression
- string_eval_path_home
- key_bind
- hook_process_hashtable
- hook_hsignal_send
- info_get_hashtable
- hdata_update
2019-02-27 07:51:02 +01:00
Sébastien Helleu
17a218e6b6
core: use function string_match_list for the autoload of plugins
2019-02-27 07:46:26 +01:00
Sébastien Helleu
c2859096cb
api: add function string_match_list
2019-02-27 07:46:22 +01:00
arza
2af3157dc2
fset: fix typo in /help fset.format.option2
2019-02-26 19:33:03 +02:00
Sébastien Helleu
471f9c61da
relay: remove obsolete comment
2019-02-24 16:13:04 +01:00
Sébastien Helleu
baa598276c
fset: fix slow refresh of fset buffer during /reload ( closes #1313 )
2019-02-22 21:33:39 +01:00
Sébastien Helleu
27481df277
core: force new API version to prevent the old aspell plugin to load (issue #1299 )
2019-02-19 21:21:20 +01:00
Sébastien Helleu
57aa9e060e
spell: rename "aspell" plugin to "spell" (issue #1299 )
...
The following things have been renamed:
- file aspell.conf -> spell.conf
- options aspell.* -> spell.*
- bar item aspell_dict -> spell_dict
- bar item and local variable aspell_suggest -> spell_suggest
- info aspell_dict -> spell_dict
2019-02-19 21:15:56 +01:00
Simmo Saan
62dfe2ac63
aspell: optimize stripping of nick_completer (issue #1306 )
2019-02-18 11:48:48 +02:00
Simmo Saan
d512cc324a
aspell: strip trailing spaces from nick_completer ( closes #1306 )
2019-02-18 11:19:42 +02:00
Sébastien Helleu
87932bcb57
irc: fix parsing of whois messages in notify
2019-02-04 20:47:59 +01:00
Sébastien Helleu
6e09499163
irc: fix crash in parsing of IRC channel modes (issue #1296 , closes #1297 )
...
Regression was introduced by commit b38b2abe3b .
2019-01-31 21:13:58 +01:00
Sébastien Helleu
b38b2abe3b
irc: fix parsing of MODE, 341 (invite) and CHGHOST commands when there are colons ( closes #1296 )
2019-01-29 21:10:49 +01:00
Sébastien Helleu
c869aa3809
relay: fix crash on /upgrade when the real IP is not set ( closes #1294 )
2019-01-28 20:37:38 +01:00
Sébastien Helleu
7e547ee70b
aspell: look for suggestions only if the misspelled word has changed ( closes #1175 )
2019-01-27 10:33:12 +01:00
Nils Görs
68bdc5fb09
aspell: set a misspelled word without suggestions in local variable "aspell_suggest" ( closes #1288 )
2019-01-26 22:38:22 +01:00
Sébastien Helleu
6d217ca8c5
doc: fix regex examples to be compatible with FreeBSD
...
The following special sequences are not supported in regular expressions on
FreeBSD:
- "\w": replaced with "[a-zA-Z0-9_]"
- "\S": replaced with "[^ ]" (it should be "[^ \t\n\r\f\v]", but in practice
only spaces could be a problem when we use this sequence).
2019-01-26 10:15:35 +01:00
Sébastien Helleu
7e0da4b68a
script: add missing input actions "A" and "v" in /help script
2019-01-20 20:13:54 +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
fec7d38e3d
irc: return IRC color code instead of WeeChat color code when decoding a too short ANSI color sequence
2019-01-20 15:07:21 +01:00
Sébastien Helleu
85ee15d4e2
irc: fix encoding of italic attribute when colors are removed
2019-01-20 15:04:52 +01:00
Sébastien Helleu
ada2994062
buflist: add alternate key codes for alt-F1/alt-F2 (xterm)
2019-01-20 01:33:47 +01:00
Sébastien Helleu
a199d243ca
buflist: fix typo on key code for ctrl-F2
2019-01-20 01:32:09 +01:00
Sébastien Helleu
e847068a3c
buflist: add default keys ctrl-F1/F2 to scroll up/down one page in buflist (same action as F1/F2)
2019-01-20 01:29:33 +01:00
Sébastien Helleu
09a124c226
buflist: add alternate key codes for F1/F2 and alt-F1/alt-F2 (compatibility with terminals)
2019-01-20 01:09:26 +01:00
Sébastien Helleu
7d442f8492
irc: fix compiler warning on GNU Hurd
...
This fixes the following warning:
irc-ctcp.c:411:46: warning: '%s' directive output may be truncated writing up
to 1023 bytes into a region of size between 0 and 1023 [-Wformat-truncation=]
2019-01-13 20:14:11 +01:00
Sébastien Helleu
4fab6dcd05
irc: do not use strptime to parse a time as float number (issue #1289 )
2019-01-13 15:25:22 +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
6343924c16
irc: check return code of calls to strptime (issue #1289 )
2019-01-13 14:46:43 +01:00
Sébastien Helleu
8009094717
irc: fix parsing of "time" message tag on FreeBSD (issue #1289 )
2019-01-11 22:40:06 +01:00
Sébastien Helleu
c96e2f3593
tests: add tests on function irc_config_check_autojoin
2019-01-11 22:27:28 +01:00
Sébastien Helleu
2b0057239b
core: update copyright dates
2019-01-01 15:40:51 +01:00
Sébastien Helleu
4034d07d5a
core: use https for links in comments
2018-12-01 08:21:49 +01:00
Sébastien Helleu
342261d35b
core: use https for all links where secured http is supported
2018-11-29 23:18:55 +01:00
Sébastien Helleu
4712d0bb06
core: use https for links to GNU GPL license
2018-11-29 23:16:07 +01:00
Sébastien Helleu
d26380a9bb
core: replace "Mac OS X" and "OS X" by "macOS" (issue #1272 )
2018-11-18 11:04:29 +01:00
Sébastien Helleu
916d99ad40
exec: add option exec.command.shell to customize the shell used with /exec -sh
2018-11-17 11:39:28 +01:00
Sébastien Helleu
c94a8f4c68
exec: fix command displayed in debug message
2018-11-17 11:17:37 +01:00