Sébastien Helleu
1ef7a55e72
core: fix typo: Weechat -> WeeChat
2019-03-17 18:34:21 +01:00
Sébastien Helleu
78cabc2e06
relay: fix compilation warning when gnutls is not found
2019-03-12 22:26:55 +01:00
Sébastien Helleu
5c2c19c0cd
irc: fix compilation warning when gnutls is not found
2019-03-12 22:26:28 +01:00
Sébastien Helleu
99e48d7fa3
core: set max length to 4096 for /secure passphrase ( closes #1323 )
2019-03-12 21:30:01 +01:00
Sébastien Helleu
bc6c1f274c
core: improve message displayed when a command is not allowed (issue #928 )
...
The whole command with arguments and the full buffer name are now displayed in
the warning message (in debug mode only).
2019-03-11 21:12:40 +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
55501b84d6
core: remove function gui_buffer_match_list_split, use function string_match_list
2019-02-27 07:46:29 +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
Simmo Saan
c84ac65954
core: add /filter addreplace ( closes #1055 )
2019-02-23 13:37:46 +01:00
Sébastien Helleu
68b56291f9
core: merge two comments in a single one (issue #1309 , issue #1311 )
2019-02-23 11:22:58 +01:00
Sébastien Helleu
7b79fbbd09
Merge remote-tracking branch 'origin/pr/1311'
2019-02-23 11:17:02 +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
Simmo Saan
8ac4a75969
gui: fix use after free bug in /filter del (issue #1309 )
...
Deleting (freeing) a filter also frees its buffers, so refilter must
happen before freeing. Disabling the filter temporarily fixes the bug.
This fix disables the filter before filter_removing signal, though.
2019-02-21 16:15:58 +02:00
Simmo Saan
91936ff583
gui: only refilter affected buffers on filter change ( closes #1309 )
2019-02-21 16:03:15 +02: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
Sébastien Helleu
9985af8b5d
Merge remote-tracking branch 'origin/pr/1307'
2019-02-19 20:38:14 +01:00
Sébastien Helleu
6a9937f08a
core: fix compilation on Mac OS ( closes #1308 )
...
This adds the missing include "unistd.h" for function "mkdtemp" (required on
Mac OS only).
2019-02-18 19:28:20 +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
arza
54c7afa6e2
Fix typo "part or words" -> "part of words"
2019-02-03 19:32:09 +02: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
1a34f87163
core: do not automatically add a space when completing "nick:" at the beginning of command line
...
The space can be added in option weechat.completion.nick_completer
(this is now the default value of the option):
/set weechat.completion.nick_completer ": "
2019-01-26 14:54:57 +01:00
Sébastien Helleu
4d9fd4c4aa
core: fix compilation of empty regular expression (not allowed on FreeBSD)
2019-01-26 10:21:39 +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