1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00
Commit Graph

1103 Commits

Author SHA1 Message Date
Tobias Stoeckmann 2fb346f25f irc: fix parsing of DCC filename 2017-04-22 15:10:53 +02:00
Sébastien Helleu a4dffb1915 irc: fix double decoding of IRC colors in messages sent/displayed by commands /msg and /query (issue #943) 2017-04-07 22:28:48 +02:00
Sébastien Helleu 6f46f65c73 irc: fix type of values for hashtable extra_vars in irc_server_get_default_msg 2017-03-25 14:19:48 +01:00
Sébastien Helleu d31e4f1d9a irc: send signal "irc_server_lag_changed", store lag in server buffer
The lag is stored in the local variable "lag" of the server buffer.
When there is no lag, the local variable does not exist.
2017-03-25 14:19:48 +01:00
Sébastien Helleu f15ea72da3 irc: check that pointers received in arguments are not NULL in "free" functions
Functions:
- irc_channel_nick_speaking_time_free
- irc_ignore_free
- irc_notify_free
- irc_raw_message_free
- irc_server_outqueue_free
2017-03-25 14:05:55 +01:00
Sébastien Helleu 5661b4da74 core: fix typo: refreshs -> refreshes 2017-03-12 18:33:53 +01:00
Sébastien Helleu e6d5d791cd irc: fix parsing of message 324 (modes) when there is a colon before the modes (closes #913) 2017-02-19 08:12:25 +01:00
Sébastien Helleu 12e2d9995c irc: add function irc_server_get_max_modes 2017-02-18 17:34:06 +01:00
Sébastien Helleu e1eeb22945 irc: update error message, update translations 2017-02-18 14:48:02 +01:00
Sébastien Helleu 51b2352786 irc: send current modes/masks if next mask doesn't fit in the string 2017-02-18 14:41:52 +01:00
Sébastien Helleu 06d73e4b96 Merge remote-tracking branch 'origin/pr/579' 2017-02-18 14:31:49 +01:00
Sébastien Helleu 1adb6075fa irc: compact some code 2017-02-18 13:14:50 +01:00
Sébastien Helleu cf1010e177 irc: move initialization of variables "inclusive" 2017-02-18 13:09:27 +01:00
Sébastien Helleu ac007a1efd Merge remote-tracking branch 'origin/pr/572' 2017-02-18 13:04:00 +01:00
Sébastien Helleu 24a15e8b95 irc: reorder conditions for mode smart filtering, add a comment 2017-01-29 14:08:25 +01:00
arza 27e949d974 irc: don't smart filter modes given to you (closes #530) 2017-01-29 11:13:59 +02:00
Sébastien Helleu 1361602ea5 tests: fix compilation of tests on FreeBSD 11
Some includes were missing in .h files, and the tests must be linked
with intl and execinfo on FreeBSD.
2017-01-13 20:57:59 +01:00
Sébastien Helleu fe7f92c4d8 irc: fix option "-temp" in command /server (closes #880) 2017-01-06 22:44:13 +01:00
Sébastien Helleu 5429381cb6 irc: fix name of option "-temp" in /help server 2017-01-06 22:13:43 +01:00
Sébastien Helleu 914bda1a74 irc: fix close of server channels which are waiting for the JOIN when the server buffer is closed (issue #873) 2017-01-01 16:35:02 +01:00
Sébastien Helleu 2087ec28e3 Merge pull request #876 from sim642/switch-join-forwarded
irc: fix buffer switching on manual join for forwarded channels
2017-01-01 15:05:33 +01:00
Sébastien Helleu c9fbb917e0 irc, xfer: fix compilation on Mac OS X (add link with resolv) (issue #276) 2017-01-01 14:53:41 +01:00
Sébastien Helleu 705d86e684 core: update copyright dates 2017-01-01 11:32:04 +01:00
Simmo Saan b30c6786b4 irc: fix buffer switching on manual join for forwarded channels
Previously using option values
	irc.look.buffer_open_before_join off
	irc.look.buffer_switch_join on
and manually joining a channel which gets forwarded
(e.g. #linux -> ##linux-overflow on freenode) the channel buffer for
##linux-overflow was not switched to even though the option says it should
have.

This patch copies manual join and noswitch information for channels which
get forwarded.
2016-12-31 19:44:47 +02:00
Sébastien Helleu f18a32e160 irc: add examples in help of usermode server option 2016-12-15 21:21:35 +01:00
Sébastien Helleu 36c9317077 irc: evaluate content of server option "usermode" 2016-12-11 13:50:38 +01:00
Sébastien Helleu ab490e10c7 irc: rename server option "umodes" to "usermode" 2016-12-11 13:43:34 +01:00
Sébastien Helleu 50a50d0339 Merge remote-tracking branch 'origin/pr/820' 2016-12-11 13:06:05 +01:00
Sébastien Helleu 28fde407f4 irc: evaluate content of server option "ssl_fingerprint" (closes #858) 2016-12-03 09:44:18 +01:00
Sébastien Helleu 377fad22db irc: add tag "self_msg" on self messages (closes #840) 2016-11-26 13:58:16 +01:00
Sébastien Helleu cfc22c700c irc: add missing tags on CTCP message sent 2016-11-26 13:49:34 +01:00
Sébastien Helleu 4a2cd9d034 irc: fix help on mask in command /ignore 2016-11-09 20:48:35 +01:00
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
Simmo Saan 03fbb4ffdc Add server option umodes (closes #377) 2016-10-12 21:38:49 +03: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 5d5335b2c1 irc: fix display of service notice mask (message 008) (closes #429) 2016-08-30 18:36:07 +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 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
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 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 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 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
Lieuwe Rooijakkers c9411a848a irc: fix typo in IRC_SERVER_OPTION_SASL_KEY comment (#724) 2016-05-01 18:37:50 +02:00
Sébastien Helleu c1441b111f irc: fix first message displayed in raw buffer when the message is modified by a modifier (closes #719) 2016-04-24 10:10:12 +02:00