Sébastien Helleu
694b5c9f87
irc: fix crash when a new message 005 is received with longer nick prefixes
...
Thanks to Stuart Nevans Locke for reporting the issue.
2020-02-14 08:11:02 +01:00
Simmo Saan
116150c2fc
irc: add server option ssl_password for SSL certificate private key password ( closes #115 )
2019-10-09 21:37:41 +02:00
Sébastien Helleu
5398f5d566
irc: fix compiler warning on uninitialized variable
2019-10-09 07:17:32 +02:00
Sébastien Helleu
ae38b11407
irc: add "user" in output of irc_message_parse ( closes #136 )
2019-09-27 20:52:00 +02:00
Sébastien Helleu
39b6fb6137
irc: remove option irc.network.channel_encode, add server option "charset_message" ( closes #832 )
...
This new option controls which part of the IRC message is decoded/encoded to
the target charset, and the new default behavior is to decode/encode the whole
IRC message (behavior in WeeChat >= 1.3 was to decode/encode only the text by
default).
2019-09-22 20:41:00 +02:00
Sébastien Helleu
210e864899
irc: fix memory leak when removing a server
2019-08-05 20:58:24 +02:00
Sébastien Helleu
0bf5a5ae9c
irc: add variables "user_max_length" and "host_max_length" in server structure (issue #1387 )
2019-08-04 14:39:58 +02:00
Sébastien Helleu
fd592c2323
irc: quote NICK command argument sent to the server only if there's a ":" in the nick ( closes #1376 , issue #1319 )
2019-07-11 07:08:36 +02:00
Sébastien Helleu
0d9b7ec954
irc: strip spaces at beginning/end of addresses in server option "addresses" ( closes #195 )
2019-06-15 20:50:48 +02:00
Sébastien Helleu
9178156354
api: add argument "strip_items" in function string_split
2019-06-15 20:47:14 +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
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
3d95217745
api: return allocated string in hook_info callback and function info_get
2019-04-13 08:42:45 +02: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
5c2c19c0cd
irc: fix compilation warning when gnutls is not found
2019-03-12 22:26:28 +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
Matthew Martin
77a9322bbf
irc: quote argument to NICK
2019-02-28 18:55:26 -06:00
Sébastien Helleu
2b0057239b
core: update copyright dates
2019-01-01 15:40:51 +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
c8da268df1
irc: fix code style
2018-05-20 17:29:01 +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
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
9dd8cc0d6a
irc: fix memory leak when receiving a message with tags
2018-03-25 17:27:15 +02:00
Sébastien Helleu
f889306c5e
irc: allow ${irc_server.xxx} and ${server} in server evaluated options ( closes #1144 )
...
The server option "ssl_fingerprint" is now evaluated when it is used (during
SSL connection), instead of when it is set with command /set.
2018-02-05 21:41:03 +01:00
Sébastien Helleu
be3634f22f
irc: add server option "split_msg_max_length"
2018-01-13 22:17:13 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
aeeec38d6f
core: fix cast of time_t (to "long long" instead of "long") ( closes #1051 )
2017-08-12 18:36:45 +02:00
Simmo Saan
0a348f0b9d
irc: factor supported CAP version
2017-06-17 20:10:45 +03:00
Simmo Saan
bdfd984d72
irc: add support for IRCv3.2 Client Capability Negotiation ( closes #586 )
2017-06-17 20:01:07 +03:00
Simmo Saan
453434644a
irc: add hashtables to keep track of all capabilities
2017-06-17 19:31:33 +03:00
Sébastien Helleu
383652aa2a
irc: remove unused functions irc_server_get_number_connected and irc_server_get_number_buffer (issue #1012 )
2017-06-14 07:29:11 +02:00
Sébastien Helleu
54bf589d7d
core, plugins: fix conditions to insert elements in linked lists
...
This removes scan-build warnings about dereference of last_xxx null pointers.
2017-06-10 16:21:11 +02:00
Sébastien Helleu
e5fd20fd25
irc: fix update of server addresses on reconnection when the evaluated content has changed ( closes #925 )
2017-05-06 15:57:42 +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
12e2d9995c
irc: add function irc_server_get_max_modes
2017-02-18 17:34:06 +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
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +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
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
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
34ccf3fd81
irc: rename server options "default_msg_*" to "msg_*", evaluate them
2016-07-17 09:29:14 +02:00