Sébastien Helleu
22895f3f5e
relay: set socket option SO_KEEPALIVE only for TCP sockets when creating the socket (issue #733 )
2019-06-04 22:59:42 +02:00
Sébastien Helleu
479d234ced
relay: set socket option SO_REUSEADDR only for TCP sockets when creating the socket (issue #733 )
2019-06-04 22:54:00 +02:00
Sébastien Helleu
86d9cb1e41
relay: set socket option SO_REUSEADDR only for TCP sockets (issue #733 )
2019-06-04 22:45:54 +02:00
Sébastien Helleu
b4dadd6d98
relay: add UNIX domain socket completion for command /relay add (issue #733 )
2019-06-04 22:29:18 +02:00
Sébastien Helleu
22e6777aed
relay: fix crash when deleting a relay (issue #733 )
2019-06-04 22:19:39 +02:00
Sébastien Helleu
66011b4bee
relay: fix truncated path when the unix socket path is longer than the authorized one (issue #733 )
2019-06-04 22:19:31 +02:00
Sébastien Helleu
917b2ddf69
spell: add a warning if aspell.conf is still present (on first spell load)
2019-06-04 20:56:05 +02:00
Sébastien Helleu
34adcde2ff
irc: add extra check on argument "nick" in functions "irc_nick_set_*"
2019-05-14 07:26:48 +02:00
Sébastien Helleu
f6d6f7bac5
irc: fix crash when the nick in incoming message is not found in channel
2019-05-14 07:25:04 +02:00
Sébastien Helleu
90610c55c8
relay: remove useless condition
...
This fixes a compilation warning on FreeBSD.
2019-05-13 22:08:35 +02:00
Sébastien Helleu
ec5aca81e7
relay: set address to "local" if not known
2019-05-13 21:57:23 +02:00
Sébastien Helleu
9ed89beaa0
core: update translations
2019-05-13 21:43:11 +02:00
Sébastien Helleu
8121747e7b
relay: rename variables in function relay_config_check_path_length
2019-05-13 20:50:13 +02:00
Simmo Saan
980d26956f
gui: fix wide ncurses header on FreeBSD (issue #1343 )
2019-05-13 13:48:39 +00:00
Sébastien Helleu
6f3e563f8b
relay: fix comment
2019-05-12 22:57:25 +02:00
Sébastien Helleu
d1577b34da
relay: set mode 700 on the unix socket file (only the owner can use it)
2019-05-12 22:27:43 +02:00
Sébastien Helleu
ef1fcbd183
relay: do not overwrite a file if it's not a socket, display an error when the socket can not be created
2019-05-12 22:18:42 +02:00
Sébastien Helleu
585eb337e8
relay: evaluate path of unix socket relay
2019-05-12 21:53:23 +02:00
Sébastien Helleu
b228ccdfc3
relay: rename function relay_config_check_path_len to relay_config_check_path_length
2019-05-12 21:39:22 +02:00
Sébastien Helleu
ade52cdc7d
relay: fix update of port/path variables in relay server when options relay.port.* and relay.path.* are changed with /set
2019-05-12 21:39:22 +02:00
Sébastien Helleu
eacc08f2e1
relay: fix section used when the unix relay does not start with "unix."
2019-05-12 21:39:22 +02:00
Sébastien Helleu
f273487688
relay: add unix relay format in /help relay
2019-05-12 21:39:22 +02:00
Sébastien Helleu
170c523c84
relay: remove extra newline at the end of /help relay
2019-05-12 21:39:22 +02:00
Sébastien Helleu
c4230ecece
relay: remove local variable ptr_server from function relay_config_check_path_cb (not needed)
2019-05-12 21:39:22 +02:00
Sébastien Helleu
c1af2702b8
relay: improve message displayed on a new client
2019-05-12 21:39:22 +02:00
Sébastien Helleu
78fda01dd5
relay: improve message displayed when the relay is removed
2019-05-12 21:39:22 +02:00
Sébastien Helleu
9d04bc5801
relay: improve message displayed when the relay is added
2019-05-12 21:39:22 +02:00
Sébastien Helleu
abe85999d8
relay: rename function relay_config_create_option_port to relay_config_create_option_port_path
2019-05-12 21:39:22 +02:00
Sébastien Helleu
df3848e1f0
relay: fix code style
2019-05-12 21:39:22 +02:00
Sébastien Helleu
c78fb8dc7c
relay: rename variable "un" to "unix_socket"
2019-05-12 18:52:22 +02:00
Ryan Farley
ffefd1b785
relay: add UNIX socket support ( closes #733 )
2019-05-12 18:51:13 +02:00
Sébastien Helleu
a24817b141
irc: rename server variable "nick_host" to "host"
2019-05-12 07:46:01 +02:00
Sébastien Helleu
26ba04b454
irc: set buffer local variable "nick_host" when a channel buffer is opened
2019-05-10 22:25:56 +02:00
Sébastien Helleu
35237c8088
irc: add bar items "irc_nick", "irc_host" and "irc_nick_host"
2019-05-10 22:00:33 +02:00
Sébastien Helleu
06aa7034fb
irc: add variable "nick_host" in server structure
2019-05-10 21:59:31 +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
Simmo Saan
5910bcf3c8
gui: fix wbkgrndset for non-wide ncurses by fallback to wbkgdset (issue #1343 )
...
cchar_t, setcchar and wbkgrndset are actually widec ncurses features,
not ext-colors features, but NCURSES_WIDECHAR doesn't accurately reflect
their existence so NCURSES_EXT_COLORS is used instead.
2019-05-04 14:31:11 +03:00
Simmo Saan
c7b242ffd9
gui: readd color buffer table zero padding and dashes (issue #1343 )
2019-05-02 21:16:57 +03:00
Simmo Saan
bf1462d7a1
gui: change command line option "-c" color pairs table to match (issue #1343 )
2019-05-02 21:06:42 +03:00
Simmo Saan
f5f6cf028c
gui: change color buffer pairs table to only show allocated pairs (issue #1343 )
2019-05-02 19:30:22 +03:00
Simmo Saan
d392b406c5
gui: increase ncurses color pair limit from 255 to 32767 (issue #1343 )
2019-05-02 19:30:22 +03:00
Simmo Saan
08719963de
gui: replace ncurses COLOR_PAIR attribute usage with special functions (issue #1343 )
2019-05-02 19:30:22 +03:00
Ryan Farley
8df3ad3d26
cmake: allow custom libdir ( fix #1341 )
...
Allows for custom LIBDIR to specified with cmake builds. WEECHAT_LIBDIR
is used for a custom Weechat directory, or set from LIBDIR (as LIBDIR
used to be set).
2019-04-25 16:53:55 -05:00
Sébastien Helleu
1582d923e6
core: use getopt to parse command line arguments
...
Multiple options can now be given in a single flag, for example:
weechat -ast
Following formats were allowed for command line argument with a value:
weechat -d /tmp/weechat
weechat --dir /tmp/weechat
Now these extra formats are supported as well:
weechat -d/tmp/weechat
weechat --dir=/tmp/weechat
2019-04-14 13:35:47 +02:00
Sébastien Helleu
4063abc86b
core: bump API version
...
This is required after changes on functions hook_info and info_get.
2019-04-13 20:48:42 +02:00
Sébastien Helleu
ebf38f142e
core: merge functions gui_line_prefix_is_same_nick_as_{previous|next} (issue #931 )
2019-04-13 20:46:05 +02:00
Sébastien Helleu
573377e2d9
core: fix /help weechat.look.buffer_time_same
2019-04-13 20:38:19 +02:00
Adrian Bjugård
0b5bff9ef5
core: add option weechat.look.prefix_same_nick_middle ( closes #930 , closes #931 )
2019-04-13 20:36:41 +02:00
Simmo Saan
97e9046918
core: add option weechat.look.buffer_time_same ( closes #1127 )
2019-04-13 14:45:53 +02:00
Sébastien Helleu
30768d4d24
trigger: add hook "info_hashtable"
2019-04-13 13:53:16 +02:00
Sébastien Helleu
8bc06ea101
trigger: add hook "info"
2019-04-13 08:52:40 +02:00
Sébastien Helleu
299c308f00
irc: fix memory leak in infos "irc_server_isupport" and "irc_server_isupport_value"
2019-04-13 08:42:45 +02:00
Sébastien Helleu
3d95217745
api: return allocated string in hook_info callback and function info_get
2019-04-13 08:42:45 +02:00
Sébastien Helleu
a84c32cf30
xfer: add option xfer.network.speed_limit_recv ( closes #269 )
...
For consistency, the option xfer.network.speed_limit has been renamed to
xfer.network.speed_limit_send.
2019-04-06 14:11:07 +02:00
Sébastien Helleu
5d02ff9a6d
tests: add tests on function util_signal_search
2019-04-01 00:15:25 +02:00
Sébastien Helleu
413aa499cc
core: add documentation on command line debug options (in --help and man pages)
...
Command line debug options are now documented:
* --no-dlclose: do not call the function dlclose after plugins are unloaded
* --no-gnutls: do not call the init and deinit functions of GnuTLS library
* --no-gcrypt: do not call the init and deinit functions of Gcrypt library
These options must not be used in production, they're for debug only and can be
used with tools like Valgrind or electric-fence.
2019-03-31 23:53:54 +02:00
Sébastien Helleu
b97fc2bd0f
core: don't execute command scheduled by /repeat if the buffer does not exist any more
2019-03-29 20:42:00 +01:00
Sébastien Helleu
2571d17cb9
core: don't execute command scheduled by /wait if the buffer does not exist any more
2019-03-29 20:37:18 +01:00
Sébastien Helleu
f1d18f4c26
core: use seconds by default in /repeat interval, allow unit for the interval
2019-03-29 20:31:19 +01:00
Sébastien Helleu
fa5b1eed77
core: move parsing of /wait delay in a separate function, with unit tests
2019-03-29 20:17:26 +01:00
Sébastien Helleu
b3cf270d1d
core: allow text in addition to a command in command /repeat
2019-03-29 08:37:57 +01:00
Sébastien Helleu
da43e95c75
relay: use option "delay" in call to command_options ( closes #1327 )
...
This fixes a crash when sending "/plugin reload relay" from a relay client.
2019-03-28 22:07:25 +01:00
Sébastien Helleu
4e9e5f2652
api: add option "delay" in hashtable options of function command_options (issue #1327 )
2019-03-28 22:07:04 +01:00
Sébastien Helleu
2f37de9148
core: make "input_commands_allowed" work with /wait and /repeat commands (issue #928 )
2019-03-28 18:45:22 +01:00
Sébastien Helleu
2612adf899
core: add CMake option "ENABLE_CODE_COVERAGE" to compile with code coverage options
...
This option is OFF by default and should be enabled only for tests, to measure
test coverage.
2019-03-24 09:38:43 +01:00
Sébastien Helleu
ff32112396
irc: fix length of string for SHA-512, SHA-256 and SHA-1 in help on ssl_fingerprint option
2019-03-21 23:36:24 +01:00
Sébastien Helleu
bb017b2613
irc: display an error with /allchan -current or /allpv -current if the current buffer is not an irc buffer ( closes #1325 )
2019-03-19 20:37:06 +01:00
Sébastien Helleu
c4bf528b4e
php: remove value for first #define in headers
2019-03-19 20:33:16 +01:00
Sébastien Helleu
f6c5061590
irc: fix update of channels modes with arguments when joining a channel ( closes #1324 )
2019-03-18 20:39:42 +01:00
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
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
9d6ebeda0d
core: add default keys ctrl-F11/F12 to scroll up/down one page in nicklist (same action as F11/F12)
2019-01-20 01:29:28 +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
f3db256ce4
core: add note about option sec.crypt.passphrase_file in /help secure (issue #1286 )
2018-12-22 09:37:25 +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
Sébastien Helleu
85d7c9b6c5
core: add command line option "-t" (or "--temp-dir") to create a temporary WeeChat home (deleted on exit)
2018-11-17 10:36:58 +01:00
Sébastien Helleu
b480c7e7c0
core: add missing include of time.h in wee-secure.h
...
This fixes a compilation issue on FreeBSD 11.0.
2018-11-17 00:40:34 +01:00
Sébastien Helleu
37a0cd0017
core: improve help on option irc.look.server_buffer ( closes #1269 )
2018-11-12 21:02:25 +01:00
Sébastien Helleu
39abe2fcd9
core: improve help on option weechat.look.nick_color_stop_chars ( closes #1268 )
2018-11-12 20:57:55 +01:00
Sébastien Helleu
de8d640958
relay: add support of close frame in websocket connection ( closes #1281 )
2018-11-12 20:43:48 +01:00
Sébastien Helleu
6cdcebed8c
buflist: add variable ${number2}, always set with the indented buffer number
2018-11-05 22:21:03 +01:00
Sébastien Helleu
5a132f06fd
core: replace ellipses by "etc." (in English) and "etc..." by "etc." in French
2018-11-04 21:53:11 +01:00
Sébastien Helleu
dd0b3c5692
core: replace "web site" by "website"
2018-11-04 21:32:35 +01:00
Sébastien Helleu
ba3d805167
Merge pull request #1273 from half-duplex/master
...
Fix regex in relay.network.allowed_ips doc
2018-11-04 16:46:11 +01:00
Sébastien Helleu
dc7d99fa73
core: improve description of infos "totp_generate" and ""totp_validate"
2018-11-04 14:50:53 +01:00
Sébastien Helleu
738535e7f6
relay: add support of Time-based One-Time Password (TOTP) as second authentication factor in weechat protocol
2018-11-04 14:50:53 +01:00
Sébastien Helleu
ed3f281ba9
api: add functions string_base_{encode,decode}, remove functions string_{encode,decode}_base64
2018-11-04 14:49:11 +01:00
Sébastien Helleu
a8b6fa08b7
core: split plugin-api.c into 2 files (API wrappers and infos/infolists)
2018-11-03 23:01:46 +01:00
Sébastien Helleu
6d72868e15
api: return integer in function string_encode_base16
2018-11-02 14:20:16 +01:00
Sébastien Helleu
8848b0e22a
api: return integer in function string_encode_base64
2018-11-02 14:09:23 +01:00
Sébastien Helleu
d0ea801724
core: add support of TOTP generation/validation (Time-based One-Time Password)
2018-11-02 14:06:14 +01:00
Sébastien Helleu
70c2e27110
core: split wee-secure.c into 3 files (secured data functions, buffer and config)
2018-10-27 08:54:10 +02:00
Sébastien Helleu
3f067f2065
buflist: fix warning displayed when script buffers.pl is loaded ( closes #1274 )
2018-10-27 08:52:20 +02:00
Trevor Bergeron
9121e5812c
Fix regex in relay allowed_ips doc
2018-10-23 00:33:01 -04:00
Sébastien Helleu
438313d331
core: replace call to strncpy by memcpy
...
This fixes a gcc warning: "warning: ‘strncpy’ output truncated before
terminating nul copying as many bytes from a string as its length
[-Wstringop-truncation]".
2018-10-21 08:54:04 +02:00
Sébastien Helleu
eb77c78dad
irc: fix uninitialized variables in function irc_protocol_cap_sync
2018-10-21 08:53:22 +02:00
Sébastien Helleu
c5ccac9e22
Merge pull request #1267 from emkw/master
...
lua: mkdir API functions should return ERROR on error.
2018-10-14 21:03:24 +02:00
emk
63e2a3dab9
lua: mkdir API functions should return ERROR on error.
2018-10-14 20:39:00 +02:00
Sébastien Helleu
d07701dae6
irc: fix colors 14 and 15 in /help irc.color.mirc_remap ( closes #1266 )
2018-10-14 20:38:14 +02:00
Sébastien Helleu
8da3458f4c
core: add repeat of string in evaluation of expressions with "repeat:count,string" ( closes #958 )
2018-10-09 21:12:02 +02:00
Sébastien Helleu
82697714e1
core: fix evaluation of nested ternary operators ( closes #1263 )
2018-10-08 22:51:08 +02:00
Sébastien Helleu
5173e19ff3
core: fix style
2018-10-06 07:10:36 +02:00
Sébastien Helleu
e688fa4daa
Merge remote-tracking branch 'origin/pr/1259'
2018-10-06 07:07:35 +02:00
Sébastien Helleu
30121ff9df
aspell: remove useless test on max_suggestions
2018-10-01 23:00:05 +02:00
Sébastien Helleu
ecdbaef288
relay: remove useless test on length
2018-10-01 22:59:05 +02:00
Sébastien Helleu
4b58ea37c0
relay: remove useless test on num_sent
2018-10-01 22:58:25 +02:00
Sébastien Helleu
fc63620f1e
irc: remove useless test on argc
2018-10-01 22:58:13 +02:00
Sébastien Helleu
fb3ca3caae
core: fix format of variables in printf-like functions (from int to long and long long)
2018-10-01 22:57:13 +02:00
Sébastien Helleu
d6d8b9094f
irc: replace call to gmtime by gmtime_r
2018-10-01 22:22:06 +02:00
Sébastien Helleu
56daba869e
core: replace call to gmtime by gmtime_r
2018-10-01 22:21:56 +02:00
Sébastien Helleu
50567b0f64
core: add missing argument in call to log_printf
2018-10-01 22:21:43 +02:00
Sébastien Helleu
8abd05fe3d
core: replace "long unsigned int" by "unsigned long"
2018-10-01 22:21:25 +02:00
Sébastien Helleu
e28cb00106
relay: add real IP in client description ( closes #1256 )
2018-09-30 09:59:45 +02:00
Sébastien Helleu
ff66a8a161
logger: add more info about log levels in /help logger ( closes #1254 )
2018-09-24 19:05:46 +02:00
Sébastien Helleu
7b3ec510ca
logger: move logger command into a separate source file
2018-09-24 19:05:21 +02:00
Sébastien Helleu
93b5e60441
irc: display a warning when the value of option irc.server.xxx.autojoin is set to an invalid value
2018-09-20 20:32:47 +02:00
Sébastien Helleu
65f1c82a87
core: allow multiple arguments in command /buffer close
2018-09-18 21:27:44 +02:00
Simmo Saan
54cd82e4a4
core: allow specifying buffer number/name for /buffer localvar
2018-09-09 19:42:31 +03:00
Sébastien Helleu
7b8faf6d97
relay: fix URL to the page with remote interfaces in /help relay
2018-09-09 10:07:16 +02:00
Sébastien Helleu
fcf7469d76
core: allow multiple options "-r" ("--run-command") in command line arguments ( closes #1248 )
2018-09-06 21:52:02 +02:00
Sébastien Helleu
796859b873
core: fix copyright dates
2018-09-01 08:13:12 +02:00
Sébastien Helleu
533dbf972d
core: rename variable "plugin_blacklisted" to "plugin_forbidden"
2018-08-30 22:10:46 +02:00
Sébastien Helleu
6bf0dfddd6
core: fix evaluation of condition when the left operand is an empty string
2018-08-18 15:30:16 +02:00
Sébastien Helleu
466dbbe75b
core: add option "-P" (or "--plugins") to customize the plugins to load at startup
...
If given, the option replaces the option weechat.plugin.autoload.
2018-08-17 19:44:41 +02:00
Sébastien Helleu
968d7ede29
trigger: add variables "tg_prefix_nocolor" and "tg_message_nocolor" in line trigger
2018-08-17 07:59:20 +02:00
Sébastien Helleu
e7096810c4
trigger: rename variable "tg_tags" to "tags" in line trigger
2018-08-17 07:43:56 +02:00
Sébastien Helleu
9105c3ba1f
trigger: allow creation of temporary variables with the regex
2018-08-16 22:47:47 +02:00
Sébastien Helleu
1a0087a7d7
core: fix string evaluation with regex replacement when the string is empty
2018-08-16 22:45:42 +02:00
Sébastien Helleu
6ca2408c99
core: fix weechat_print modifier
...
All changes:
- always send the Tab char in the weechat_print modifier string
- handle special cases in weechat_print modifier: no prefix (" \t...") or no
date ("\t\t...")
2018-08-16 18:19:07 +02:00
Sébastien Helleu
ec5a5fd73f
core: fix use of NULL pointer in command /buffer when the GUI is not yet initialized
2018-08-15 16:24:07 +02:00
Sébastien Helleu
f10578b18b
core: remove use of pointer "buffer" once the line has been initialized
2018-08-15 16:16:31 +02:00
Sébastien Helleu
cfc491f7d1
core: remove unneeded initialization of variable "highlight"
2018-08-15 16:11:27 +02:00
Sébastien Helleu
eb64c8d65c
irc: add missing initialization of variable "chghost"
2018-08-15 16:02:43 +02:00
Sébastien Helleu
cb8b60028b
trigger: fix /help trigger
2018-08-15 12:35:42 +02:00
Sébastien Helleu
8c47ca6926
core: add comments in function to print a line
2018-08-15 12:17:42 +02:00
Sébastien Helleu
7b0cced319
core: fix destruction of line prefix in weechat_print modifier
2018-08-15 12:16:52 +02:00
Sébastien Helleu
8e939b089d
core: fix comparison of strings in weechat_print modifier
2018-08-15 12:16:06 +02:00
Sébastien Helleu
2f2263afa6
trigger: add missing initialization of variable "tags" in hook line callback
2018-08-15 11:59:26 +02:00
Sébastien Helleu
6d061a9ac0
api: fix memory leak in function string_split
2018-08-15 09:42:43 +02:00
Sébastien Helleu
aff752c50b
trigger: fix memory leak in hook_line trigger callback
2018-08-15 09:33:25 +02:00
Sébastien Helleu
bb8ac59c32
core: fix memory leak when removing a line hook
2018-08-15 09:32:56 +02:00
Sébastien Helleu
66d11b7e46
trigger: add missing values for line trigger
2018-08-15 09:02:58 +02:00
Sébastien Helleu
3bdab1c538
core: fix type of variables "buffer_name" and "buffer_type" sent to the hook_line callback
2018-08-14 14:51:18 +02:00
Sébastien Helleu
49c3e62106
core: split wee-hook.c into multiple sources
2018-08-14 07:15:39 +02:00
Sébastien Helleu
42be1a74a0
api: add function hook_line
2018-08-12 21:45:00 +02:00
Sébastien Helleu
12a6f74ec0
core: fix check of tags in lines
...
All changes:
- fix check of tags in lines: check lines without tags, fix check of tags with
negation ("!tag")
- add string functions string_split_tags and string_free_split_tags
- add tests on function gui_line_match_tags
2018-08-12 20:30:13 +02:00
Sébastien Helleu
a14973816b
Merge pull request #1225 from weechatter/partial_completion
...
gui: fix uncleared completion item (#1162 )
2018-07-27 07:51:36 +02:00
Sébastien Helleu
7d7ca34a41
core: allow partial buffer name in command /buffer close ( closes #1226 )
2018-07-27 07:48:02 +02:00
Sébastien Helleu
b7d6be5936
scripts: fix duplicated lines in output of script eval (python, perl, ruby, lua and guile)
...
When there was a call to a hook callback during the eval, the output buffer was
cleared too late, and displayed multiple times in the buffer.
This commit clears the buffer even before we display it (this display can
trigger a hook callback).
2018-07-25 20:19:26 +02:00
Nils Görs
b934e874d0
gui: fix uncleared completion item ( #1162 )
2018-07-21 12:50:39 +02:00
Sébastien Helleu
df27a3b76a
core: send signal "key_pressed" for mouse code only if the string is UTF-8 valid ( closes #1220 )
2018-07-15 15:09:31 +02:00
Jos Ahrens
62ad65ef45
core: improve instructions to report the crash
2018-07-15 14:09:34 +02:00
Sébastien Helleu
2682fb450d
lua: fix macros used to return values
2018-07-13 21:25:51 +02:00
Sébastien Helleu
bf48efffec
relay: fix compiler warnings on calls to snprintf
2018-07-13 21:25:07 +02:00
Sébastien Helleu
a205886d7a
core: fix compiler warnings on calls to snprintf
2018-07-13 21:24:40 +02:00
Sébastien Helleu
de1ade02c3
python: fix crash when loading a script with Python >= 3.7 ( closes #1219 )
2018-07-12 19:27:37 +02:00
Sébastien Helleu
5b3f2ad466
irc: add nick, host and log tags in message displayed in private buffer when the nick comes back on the server ( closes #1221 )
2018-07-11 07:36:11 +02:00
Sébastien Helleu
7bd8fb4686
buflist: fix crash when setting the option buflist.look.signals_refresh with a list of signals
2018-07-10 20:30:10 +02:00
Sébastien Helleu
14a929341e
fset: fix memory leak when switching the format with ctrl-X
2018-07-08 14:48:06 +02:00
Sébastien Helleu
c17ab6aa00
fset: fix truncation of option values when the length is greater than 4096 ( closes #1218 )
2018-07-08 14:46:19 +02:00
Sébastien Helleu
5decae145f
relay: fix socket creation for relay server on OpenBSD ( closes #1213 )
...
The socket option IPV6_V6ONLY is not needed on OpenBSD and must not be set (it
is read-only).
2018-07-01 15:39:34 +02:00
Sébastien Helleu
6292896021
irc: add channel color in message 354 with missing parameters (issue #1212 )
2018-06-24 09:46:29 +02:00
Sébastien Helleu
db690fbf91
irc: do not display message 354 with missing parameters if there's an automatic check of WHOX on the channel (issue #1212 )
2018-06-24 08:29:10 +02:00
Sébastien Helleu
a5962cf7f5
irc: display message 354 (WHOX) received with missing parameters ( closes #1212 )
2018-06-23 22:17:18 +02:00
Sébastien Helleu
261cbdae0d
core: change default value of option weechat.look.hotlist_add_conditions ( closes #1206 )
...
Now if there are at least one relay client connected via weechat protocol,
the buffer is always added to the hotlist.
2018-06-14 22:22:06 +02:00
Sébastien Helleu
744ded04bd
relay: add filtering on protocol in info "relay_client_count" (issue #1206 )
2018-06-14 21:57:27 +02:00
Sébastien Helleu
da507ca85f
core: add key alt+"-" in /help filter
2018-06-14 21:44:34 +02:00
Sébastien Helleu
641180caf1
Merge remote-tracking branch 'origin/pr/1196'
2018-06-13 22:19:15 +02:00
Sébastien Helleu
dc12f6bef0
fset: fix crash when applying filters after closing the fset buffer ( closes #1204 )
2018-06-11 23:03:02 +02:00
Sébastien Helleu
1abf4040f1
core: add reverse of string in evaluation of expressions with "rev:" ( closes #1200 )
2018-06-02 16:01:14 +02:00
Sébastien Helleu
ba19fa9963
core: count number of chars instead of bytes for suffix in function string_cut
2018-06-02 15:18:29 +02:00
Sébastien Helleu
39a291bc53
core: return NULL in function string_cut if string is NULL
2018-06-02 15:14:21 +02:00
Sébastien Helleu
53fedfe4e6
trigger: hide password in display of command "/msg nickserv set password", support the option "-server xxx"
2018-05-31 22:51:23 +02:00
Sébastien Helleu
1587674e9b
trigger: hide password in command "/msg nickserv set password"
2018-05-31 21:14:57 +02:00
Sébastien Helleu
4592c9438f
core: send buffer pointer (when possible) in signal "hotlist_changed" ( closes #1133 )
...
When a buffer is added or updated in the hotlist, the buffer pointer is sent.
When the hotlist is cleared or resorted, the buffer pointer is NULL.
2018-05-31 20:25:10 +02:00
Sébastien Helleu
2026545aaa
core: fix delete of previous/next word (keys Ctrl+w and Alt+d) ( closes #1195 )
2018-05-22 22:26:00 +02:00
Simon Arlott
9aaea09b02
core: unhook TLS handshake fd before calling connect callback
...
When there are multiple addresses for a server and a TLS handshake failure
occurs, the next server in the list will connect and then timeout without
performing any TLS handshake.
This is because irc_server_close_connection closes server->sock so the next
pipe to be created reuses that fd, but the hook for the handshake fd still
exists when the next connection attempt is started.
The hook for network_connect_child_read_cb is never added because a hook
for the reused fd number still exists.
Resolve this by removing the handshake hook before calling the connect
callback.
2018-05-22 12:27:41 +01:00
Sébastien Helleu
530f73ec71
irc: update ircv3 URLs in comments
2018-05-21 15:48:59 +02:00
Sébastien Helleu
9f25d7d347
core: use function string_split to split list items
2018-05-21 10:24:57 +02:00
Sébastien Helleu
e4a69406ba
core: uncomment CURL option PROXY_SSL_CIPHER_LIST
2018-05-21 10:24:57 +02:00
Joseph Kichline
2542250a21
core: handle lists in hook_process_hashtable for urls ( closes #219 )
2018-05-21 10:24:57 +02:00
Sébastien Helleu
37d870092b
irc: display an error if memory can not be allocated in chghost callback
2018-05-21 08:47:19 +02:00
Sébastien Helleu
c0cb3a6178
Merge remote-tracking branch 'origin/pr/640'
2018-05-21 08:05:04 +02:00
Sébastien Helleu
7b15ffdb71
irc: add space before capability only if the string is not empty
2018-05-20 22:44:09 +02:00
Sébastien Helleu
fe66886398
irc: add missing space between capabilities in display of supported/enabled capabilities
2018-05-20 22:33:58 +02:00
Sébastien Helleu
3c29f92e9b
Merge remote-tracking branch 'origin/pr/639'
2018-05-20 22:22:20 +02:00
Sébastien Helleu
6b8f45f3bb
irc: replace calls to sprintf by snprintf
2018-05-20 21:41:17 +02:00
Sébastien Helleu
eb3eb4fdf3
irc: use dynamic string functions to display supported/enabled capabilities
2018-05-20 21:19:00 +02:00
Sébastien Helleu
a6e175f3e9
irc: add missing "cap_extended_join" in comment
2018-05-20 17:29:01 +02:00