4527 Commits

Author SHA1 Message Date
Sébastien Helleu
b51beb6766 irc: change default value of option irc.network.lag_reconnect to 300 (closes #818) 2016-10-18 22:06:39 +02:00
Sébastien Helleu
997f47f77a core: fix integer overflow in calls to realloc (issue #809) 2016-10-08 13:10:56 +02:00
Sébastien Helleu
485aff59c4 core: fix realloc in function gui_input_optimize_size (issue #809)
This could cause crash in case of memory allocation error
(but WeeChat would probably crash or have problems anyway if there's not
enough memory for the input line).
2016-10-08 12:46:34 +02:00
Sébastien Helleu
54841f6294 api: fix return of function string_match() when there are multiple masks in the string (issue #812)
Some tests are added as well to test the multiple masks in the string.
2016-10-02 08:58:19 +02:00
Sébastien Helleu
292bad719a irc: remove unneeded comment 2016-09-22 21:07:26 +02:00
Rob Campbell
cb382a0174 Fix for unclosed/leaking sockets from issue #358 2016-09-19 02:20:52 -07:00
Sébastien Helleu
e0c5507a7f core: replace "clipboard" by "internal clipboard" in /help input and user's guide 2016-09-08 21:21:44 +02:00
Sébastien Helleu
0572d0c4f5 core: evaluate content of option "weechat.look.item_time_format" (issue #791) 2016-09-03 08:28:05 +02:00
Sébastien Helleu
5d5335b2c1 irc: fix display of service notice mask (message 008) (closes #429) 2016-08-30 18:36:07 +02:00
Sébastien Helleu
593b3cad72 core: add example of splith and merge in /help window 2016-08-27 13:34:34 +02:00
Sébastien Helleu
ec85bc1367 core: fix warnings about unused variables 2016-08-22 21:40:25 +02:00
Sébastien Helleu
d6767b4ed6 api: fix crash in function network_connect_to() if address is NULL (issue #781) 2016-08-20 19:55:35 +02:00
Sébastien Helleu
2f0d39f98d xfer: fix crash on DCC send if option xfer.file.auto_accept_nicks is set (closes #781) 2016-08-20 19:52:47 +02:00
Sébastien Helleu
c2ea70c3e9 api: fix connection to servers with hook_connect() on Windows 10 with Windows subsystem for Linux (issue #770)
The test on socketpair() function is now made when hooks are
initialized (instead of doing the test at compilation time).
2016-08-19 20:06:04 +02:00
Sébastien Helleu
091ef992dd Revert "api: fix connection to servers with hook_connect() on Windows 10 with Windows subsystem for Linux (closes #770)"
This reverts commit 399636f98453bdc1fca19b4dbc742993549aa6c3.
2016-08-19 19:44:08 +02:00
Sébastien Helleu
c74c55759a core: move the extra_vars_eval argument after extra_vars 2016-08-18 21:42:13 +02:00
Sébastien Helleu
c6b3c9d79b core: fix empty comment 2016-08-18 21:38:04 +02:00
Sébastien Helleu
61bc6b6550 Merge remote-tracking branch 'origin/pr/534' 2016-08-18 21:24:10 +02:00
Sébastien Helleu
a01ecb276f core: add optional argument "lowest", "highest" or level mask in command /input hotlist_clear 2016-08-16 21:22:28 +02:00
Sébastien Helleu
f35710e6d5 core: fix completion of command /buffer swap 2016-08-14 11:34:17 +02:00
Sébastien Helleu
daca5c3c86 core: add option "cycle" in command /buffer 2016-08-14 11:29:34 +02:00
Sébastien Helleu
4c25604dec xfer: fix NULL pointer derefence in case of memory error in xfer_set_{local|remote}_address() 2016-08-13 15:36:46 +02:00
Sébastien Helleu
6c6cc73da2 xfer: fix memory leak in case of memory error in xfer_chat_open_buffer() 2016-08-13 15:35:40 +02:00
Sébastien Helleu
f7604c5a6b irc: fix NULL pointer derefence in case of memory error in irc_sasl_dh() 2016-08-13 15:33:02 +02:00
Sébastien Helleu
7447b81f87 core: fix NULL pointer derefence in case of memory error in gui_buffer_input_buffer_init() 2016-08-13 14:51:09 +02:00
Sébastien Helleu
3e35df9bce core: free file pointer in case of memory error in util_file_get_content() 2016-08-13 14:48:33 +02:00
Sébastien Helleu
db76d6a097 trigger: add missing step with post action in /help trigger 2016-08-10 22:31:49 +02:00
Sébastien Helleu
73db57f245 trigger: add post action in command line built by /trigger input|output|recreate 2016-08-09 22:12:17 +02:00
Sébastien Helleu
00dc40da1d trigger: add quotes around completions of post action 2016-08-09 22:06:09 +02:00
Sébastien Helleu
de7dc59c87 trigger: rename "once action" to "post action" 2016-08-09 21:35:39 +02:00
Sébastien Helleu
810077fc12 Merge remote-tracking branch 'origin/pr/509' 2016-08-09 21:05:34 +02:00
Sébastien Helleu
c74e7cb7d7 irc: remove evil tab 2016-08-07 16:35:27 +02:00
Sébastien Helleu
751769b49d core: irc, xfer: do not check return code of res_init()
If the call to res_init() fails, the connection may be OK anyway
or in worst case it will fail (with an appropriate error) if the name
can not be resolved.
2016-08-07 16:17:42 +02:00
Sébastien Helleu
f695a79d9b core, irc, xfer: add missing includes for function res_init() 2016-08-07 16:15:59 +02:00
Sébastien Helleu
eee11972f7 Merge remote-tracking branch 'origin/pr/771' 2016-08-07 16:08:44 +02:00
Raghavendra Prabhu
761c5e2d11 core/plugins: Use res_init before getaddrinfo.
With weechat, if the network changes in anyway that causes resolv.conf
to be updated, that is not picked up, resulting in

    irc: connecting to server XXXX.com/1026 (SSL)...
    irc: address "XXX.com" not found
    irc: error: Name or service not known
    irc: reconnecting to server in 30 seconds

This happens, especially when one connects to an irc server behind a
VPN.

This can also happen when there is no network connectivity weechat was started
but later network is connected to.

The fix is simple, it relies on calling  res_init (3) before getaddrinfo in
network_connect_child and other places.

res_init reloads the resolv.conf and getaddrinfo does not fail with
address resolution error.
2016-08-07 13:20:54 +01:00
Sébastien Helleu
399636f984 api: fix connection to servers with hook_connect() on Windows 10 with Windows subsystem for Linux (closes #770) 2016-08-06 22:13:52 +02:00
Sébastien Helleu
24d9abf46d Merge pull request #738 from scumjr/master
irc: fix NULL pointer dereference in 734 command callback
2016-08-02 18:29:12 +02:00
Sébastien Helleu
09c52755d1 relay: return an empty hdata when the requested hdata or pointer is not found (closes #767) 2016-07-29 15:55:42 +02:00
Sébastien Helleu
4397dccd1b core: add keys for secure buffer in /help secure (closes #756) 2016-07-29 10:03:20 +02:00
Sébastien Helleu
34ccf3fd81 irc: rename server options "default_msg_*" to "msg_*", evaluate them 2016-07-17 09:29:14 +02:00
Sébastien Helleu
e2a3cc8bf4 irc: fix typo in a comment 2016-07-09 21:26:28 +02:00
Sébastien Helleu
eb86def400 core: rename function string_iconv_fprintf to string_fprintf 2016-07-09 18:28:03 +02:00
Sébastien Helleu
666bc4fda2 core: replace some single quotes by double quotes in help of options 2016-07-09 12:34:40 +02:00
Sébastien Helleu
20c86db0d8 api: remove functions printf_date() and printf_tags() 2016-06-18 08:49:35 +02:00
Sébastien Helleu
7342a47de0 core, irc, xfer: display more information in memory allocation errors (issue #573) 2016-05-27 20:13:35 +02:00
scumjr
e7fd68c29e irc: fix NULL pointer dereference in 734 command callback 2016-05-19 12:50:04 +02:00
Sébastien Helleu
499b9be1fb relay: add option relay.network.allow_empty_password (closes #735) 2016-05-18 07:55:03 +02:00
Sébastien Helleu
af83fb55e1 relay: allow escape of comma in command "init" (weechat protocol) (issue #730) 2016-05-13 19:37:19 +02:00
Wojciech Kwolek
a44bcaf080 core: fix the hardcoded separator in string_split_command 2016-05-08 12:14:17 +02:00