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
Sébastien Helleu
70a930516d
irc: always set nick away status on WHO response (sent manually or automatically with server option "away_check")
2018-04-02 10:36:36 +02:00
Sébastien Helleu
3ce882daee
irc: allocate the string "prefix" in nick
...
This fixes a crash when calling the function hdata_string on the "prefix"
variable in the nick.
2018-04-02 09:58:08 +02:00
Sébastien Helleu
bbd6471197
irc: add missing parameter "-server" in /help list (issue #1165 )
2018-04-01 08:43:50 +02:00
Sébastien Helleu
5314aa394a
irc: add option "-server" in command /list ( closes #1165 )
2018-04-01 08:38:15 +02:00
Sébastien Helleu
fc2395ca4f
irc: replace "server" by "target" in help of commands when the argument is not an internal WeeChat server (issue #1165 )
2018-04-01 08:00:59 +02:00
Sébastien Helleu
230e827d24
core: fix help on option weechat.look.hotlist_count_max
2018-03-31 15:57:38 +02:00
Sébastien Helleu
e3ff69d669
core: improve help on option weechat.look.hotlist_count_max
2018-03-31 15:37:25 +02:00
Sébastien Helleu
11b4186f54
core: update translations (issue #1171 )
2018-03-31 13:56:49 +02:00
Sébastien Helleu
4306613536
xfer: improve help on option xfer.network.send_ack (issue #1171 )
2018-03-31 13:39:20 +02:00
Sébastien Helleu
5a58b92044
xfer: fix code style and comments (issue #1171 )
2018-03-31 13:39:16 +02:00
Sébastien Helleu
b32ea2e373
xfer: move option "send_ack" (sort options by name) (issue #1171 )
2018-03-31 13:39:04 +02:00
Sébastien Helleu
060ba763f2
Merge remote-tracking branch 'origin/pr/1171'
2018-03-31 13:30:21 +02:00
Sébastien Helleu
3d5ea005e0
irc: fix split of messages when server option "split_msg_max_length" is set to 0 (no split) ( closes #1173 )
2018-03-31 10:06:22 +02:00
Dominique Martinet
dd627f3a53
xfer: add xfer.network.send_ack option
...
This option disables sending acks during transfer, leaving only the final ack,
as would naturally happen if sending ack ever returns EWOULDBLOCK.
2018-03-28 09:35:35 +02:00
Dominique Martinet
57e8c99546
xfer: set TCP_NODELAY on recv side
...
This works around hangs where only a couple of bytes could be sent
to the socket and retrying to send the last bytes of the ack never
seem to work.
Closes #1167 .
2018-03-28 09:32:18 +02:00
Sébastien Helleu
54bd959300
core: add missing completion with buffer names for command /buffer merge (issue #1108 , issue #1159 )
2018-03-25 21:43:20 +02:00
Sébastien Helleu
c90572babe
irc: send whole IRC message including IRCv3 tags in the signals irc_in, irc_in2, irc_raw_in and irc_raw_in2 (issue #787 )
2018-03-25 20:05:12 +02:00
Sébastien Helleu
aaad4ca6e5
irc: update URL with IRCv3.2 message tags specification
2018-03-25 17:46:25 +02:00
Sébastien Helleu
9dd8cc0d6a
irc: fix memory leak when receiving a message with tags
2018-03-25 17:27:15 +02:00
Sébastien Helleu
10f5f6d3ae
core: update translations
2018-03-25 10:23:19 +02:00
Sébastien Helleu
91bfd809e6
irc: fix help on commands /unban and /unquiet
2018-03-25 10:09:15 +02:00
Sébastien Helleu
0d74b03004
irc: rename functions to search modelist items
2018-03-25 10:05:58 +02:00
Sébastien Helleu
8f3c9a7378
irc: reorder modelist functions
2018-03-25 10:01:36 +02:00
Sébastien Helleu
126a825924
irc: add completion with modelist numbers for commands /unban and /unquiet
2018-03-25 08:38:42 +02:00
Sébastien Helleu
5793181ead
irc: factorize code to set state of modelists in a channel
2018-03-25 08:18:54 +02:00
Sébastien Helleu
1dff661356
irc: clear the modelist if nothing was received before the end of list (invite/exception/ban/quiet)
2018-03-24 19:02:01 +01:00
Sébastien Helleu
4bdda6dd0a
irc: fix indenting in debug print of modelist
2018-03-24 18:53:11 +01:00
Sébastien Helleu
f457d779a4
irc: fix debug print of modelist item number and pointer
2018-03-24 18:37:06 +01:00
Sébastien Helleu
afc1ecdaf9
irc: fix debug print of modelist item datetime value
2018-03-24 18:36:32 +01:00
Sébastien Helleu
cbad99356f
irc: fix messages on exception to make them easier to translate
2018-03-24 18:36:32 +01:00
Sébastien Helleu
a75250b300
irc: mark setter as optional in modelist item
2018-03-24 18:36:32 +01:00
Sébastien Helleu
51b90cbd53
irc: first search the modelist item, then free it if found
2018-03-24 17:11:01 +01:00
Sébastien Helleu
de825c9152
irc: check that the modelist item number is valid before using it
2018-03-24 17:10:08 +01:00
Sébastien Helleu
50d39969cb
irc: fix some styles
2018-03-24 17:08:56 +01:00
Simmo Saan
d77e1ea499
irc: add indexed ban list, add completion for /unban and /unquiet ( closes #597 , task #11374 , task #10876 )
2018-03-24 17:01:50 +01:00
Sébastien Helleu
062051acb3
core: improve help of option weechat.completion.partial_completion_alert
2018-03-19 21:55:06 +01:00
Ruslan Bekenev
8582f281f2
core: merge buffer by name
2018-03-19 21:48:24 +01:00
Fredrik Fornwall
b29352eff6
Replace getdtablesize() with sysconf(_SC_OPEN_MAX)
...
From the getdtablesize(3) man page:
It is not specified in POSIX.1; portable applications should
employ sysconf(_SC_OPEN_MAX) instead of this call.
Specifically, this fixes a compilation problem on Android.
2018-03-18 21:15:12 +01:00
Sébastien Helleu
8e7f5ea6e8
core: fix build with CMake and Ninja
2018-03-18 11:49:15 +01:00
Sébastien Helleu
8cf3b09d81
scripts: hide message when the eval script is unloaded
...
Related to commit 8fbbe8b0d5 .
2018-03-17 08:17:41 +01:00
Sébastien Helleu
71999e17c6
core: quit WeeChat on ctrl-C (signal SIGINT) in headless mode
2018-03-16 20:10:57 +01:00
Sébastien Helleu
84f4e31425
core: fix compilation error on Cygwin
2018-03-16 20:09:35 +01:00
Sébastien Helleu
78f5a73d94
doc: replace "rm -f" by "$(RM)" in makefiles
2018-03-11 20:59:41 +01:00
Sébastien Helleu
c6d4deb8df
Revert "core: remove colors from prefix/message only when needed in hook_print_exec"
...
This reverts commit bfc579cb33 .
2018-03-11 18:31:30 +01:00
Sébastien Helleu
985a55cf45
core: fix compilation warning on ignored returned value for function dup()
2018-03-11 10:34:19 +01:00
Sébastien Helleu
805717e9ec
core: add binary weechat-headless to run WeeChat without interface ( closes #1120 )
...
The optional command line option "--daemon" runs WeeChat like a daemon
(fork, new process group, file descriptors closed).
2018-03-11 09:59:39 +01:00
Sébastien Helleu
3f5d57cc5c
Merge pull request #1152 from mumixam/typo-fix
...
fset: corrected typos
2018-02-22 07:36:20 +01:00