Sébastien Helleu
42be1a74a0
api: add function hook_line
2018-08-12 21:45:00 +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
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
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
744ded04bd
relay: add filtering on protocol in info "relay_client_count" (issue #1206 )
2018-06-14 21:57:27 +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
530f73ec71
irc: update ircv3 URLs in comments
2018-05-21 15:48:59 +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
Sébastien Helleu
c8da268df1
irc: fix code style
2018-05-20 17:29:01 +02:00
Sébastien Helleu
108004be95
irc: do a case-sensitive comparison of CAP command
2018-05-20 16:29:36 +02:00
Sébastien Helleu
6356646c25
irc: replace version x.y.z by 2.2 in comment
2018-05-20 15:25:57 +02:00
Sébastien Helleu
afb1d03053
Merge remote-tracking branch 'origin/pr/623' into irc-3.2-cap
2018-05-20 15:21:07 +02:00
Sébastien Helleu
0f8485f54e
buflist: add example of format for two bar items using a ternary operator in /help buflist.format.buffer
2018-05-19 14:47:59 +02:00
Sébastien Helleu
60254ff48d
irc: display current nick on connected servers in output of /server list|listfull ( closes #1193 )
2018-05-19 09:07:08 +02:00
Sébastien Helleu
762e1e6b1e
irc: remove unneeded check on variable pos
2018-05-19 08:15:00 +02:00
Sébastien Helleu
eb8043f2b4
relay: remove unneeded check on variable irc_argv
...
The variable "irc_argv" is always set if irc_argc > 0.
2018-05-19 08:14:56 +02:00
Sébastien Helleu
5756892203
exec: fix minimal length of unquoted string
2018-05-19 08:14:52 +02:00
Sébastien Helleu
26d972dd57
script: fix memory leak in case of invalid XML content in list of scripts
2018-05-18 23:01:57 +02:00
Sébastien Helleu
4aeed262f8
php: add comments about C compiler happiness
2018-05-17 22:04:19 +02:00
Sébastien Helleu
8b876bd668
scripts: remove double return in info eval callback functions not yet implemented
2018-05-17 22:02:10 +02:00
Sébastien Helleu
f3a31f609a
php: ensure vbuffer is not NULL before using it
2018-05-17 21:59:20 +02:00
Sébastien Helleu
b0fc579955
fset: ensure option_name is not NULL before comparing it
2018-05-17 21:51:09 +02:00
Sébastien Helleu
9265acf879
scripts: fix memory leak in hook_info callback
2018-04-13 19:55:20 +02:00
Sébastien Helleu
41d63511b4
scripts: fix return value of hook_infolist callback (pointer instead of string)
2018-04-12 00:12:20 +02:00
Sébastien Helleu
3467d6eb43
scripts: return long integer instead of string in function infolist_time
2018-04-10 21:26:15 +02:00
Sébastien Helleu
4001ed956f
php: return long instead of int in function hdata_time
2018-04-10 19:34:43 +02:00
Sébastien Helleu
9d83cefdbf
php: fix return code of functions config_write_option and config_write_line
2018-04-10 19:34:31 +02:00
Sébastien Helleu
ab61ddd4ab
scripts: do not allocate memory when converting pointers to strings
2018-04-10 19:33:14 +02:00
Sébastien Helleu
c89035327c
ruby: fix memory leak in 7 functions returning allocated strings
...
Fixed functions:
- list_new
- list_add
- list_search
- list_casesearch
- list_get
- list_next
- list_prev
2018-04-10 19:31:39 +02:00
Sébastien Helleu
e7b2e3cb02
guile: fix memory leak in 7 functions returning allocated strings
...
Fixed functions:
- list_new
- list_add
- list_search
- list_casesearch
- list_get
- list_next
- list_prev
2018-04-10 19:31:14 +02:00
Sébastien Helleu
c3d1c9734b
php: fix memory leak in 72 functions returning allocated strings
...
Fixed functions:
- iconv_to_internal
- iconv_from_internal
- string_mask_to_regex
- string_format_size
- string_remove_color
- string_eval_expression
- string_eval_path_home
- list_new
- list_add
- list_search
- list_casesearch
- list_get
- list_next
- list_prev
- config_new
- config_new_section
- config_search_section
- config_new_option
- config_search_option
- config_get
- hook_command
- hook_completion
- hook_command_run
- hook_timer
- hook_fd
- hook_process
- hook_process_hashtable
- hook_connect
- hook_print
- hook_signal
- hook_hsignal
- hook_config
- hook_modifier
- hook_modifier_exec
- hook_info
- hook_info_hashtable
- hook_infolist
- hook_focus
- buffer_new
- buffer_search
- buffer_search_main
- current_buffer
- buffer_get_pointer
- buffer_string_replace_local_var
- current_window
- window_search_with_buffer
- window_get_pointer
- nicklist_add_group
- nicklist_search_group
- nicklist_add_nick
- nicklist_search_nick
- nicklist_group_get_pointer
- nicklist_nick_get_pointer
- bar_item_search
- bar_item_new
- bar_search
- bar_new
- infolist_new
- infolist_new_item
- infolist_new_var_integer
- infolist_new_var_string
- infolist_new_var_pointer
- infolist_new_var_time
- infolist_search_var
- infolist_get
- infolist_pointer
- hdata_get
- hdata_get_list
- hdata_move
- hdata_search
- hdata_pointer
- upgrade_new
2018-04-07 21:52:49 +02:00
Sébastien Helleu
6de98179bc
api: add function string_format_size in scripting API
2018-04-07 13:20:58 +02:00
Sébastien Helleu
974c25df76
irc: replace "server" by "name" in /help server
2018-04-06 21:26:16 +02:00