1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00
Commit Graph

128 Commits

Author SHA1 Message Date
Sébastien Helleu 9bad3f44db core: remove value for first #define in headers, add "PLUGIN" in plugin headers 2017-08-10 20:05:16 +02:00
Simmo Saan 832316df0c irc: fix irc_server_autojoin_channels declared without arguments 2017-06-03 15:56:26 +03: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 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 12e2d9995c irc: add function irc_server_get_max_modes 2017-02-18 17:34:06 +01: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 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
Simmo Saan 03fbb4ffdc Add server option umodes (closes #377) 2016-10-12 21:38:49 +03:00
Sébastien Helleu 34ccf3fd81 irc: rename server options "default_msg_*" to "msg_*", evaluate them 2016-07-17 09:29:14 +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 cf6aca1619 core: add pointer in some callbacks (closes #406)
This pointer is the first argument received by callbacks, and the
existing argument "data" is now automatically freed by WeeChat when the
object containing the callback is removed.

With this new pointer, the linked list of callbacks in scripts has been
removed. This will improve speed of scripts (using a lot of hooks),
reduce memory used by scripts and reduce time to unload scripts.

Following functions are affected in the C API:

* exec_on_files
* config_new
* config_new_section
* config_new_option
* hook_command
* hook_command_run
* hook_timer
* hook_fd
* hook_process
* hook_process_hashtable
* hook_connect
* hook_print
* hook_signal
* hook_hsignal
* hook_config
* hook_completion
* hook_modifier
* hook_info
* hook_info_hashtable
* hook_infolist
* hook_hdata
* hook_focus
* unhook_all_plugin
* buffer_new
* bar_item_new
* upgrade_new
* upgrade_read
2016-03-21 18:11:21 +01:00
Sébastien Helleu 3330724574 core: update copyright dates 2016-01-01 11:09:53 +01:00
Sébastien Helleu ed32302011 irc: move option irc.network.alternate_nick into servers (closes #633) 2015-12-24 20:36:05 +01:00
Sébastien Helleu ad45fd775d Merge remote-tracking branch 'origin/pr/351' 2015-12-20 10:13:29 +01:00
Sébastien Helleu 5aa93fdbb7 irc: fix update of lag item when the server lag changes 2015-08-05 20:51:12 +02:00
Sébastien Helleu 71dd64678c core: add comments after some #endif 2015-04-30 21:15:30 +02:00
Sébastien Helleu fe9a9fbfce irc: add support of SHA-256 and SHA-512 algorithms in server option "ssl_fingerprint" (closes #281) 2015-04-18 18:52:20 +02:00
Max Teufel e00d7f2bfd irc: track realnames using extended-join and WHO 2015-03-07 15:46:02 +01:00
Max Teufel f379adffd0 irc: add support for CAP account-notify 2015-01-24 14:09:54 +01:00
Sébastien Helleu e2be01833f irc: add support of "ecdsa-nist256p-challenge" SASL mechanism (closes #251) 2015-01-19 23:52:33 +01:00
Sébastien Helleu a020c28ea6 core: update copyright dates 2015-01-01 09:23:23 +01:00
Sébastien Helleu adb4d0debd irc: add option "reorder" in command /server (closes #229) 2014-12-21 11:12:32 +01:00
Sébastien Helleu afef4b0d8a irc: add missing server options "sasl_timeout", "sasl_fail" and "notify" in output of /server listfull 2014-11-23 15:09:59 +01:00
Sébastien Helleu 4f4045fb84 irc: rename server option "sasl_disconnect_on_fail" to "sasl_fail", change type to integer (enum)
New possible values are:
- "continue": ignore the SASL failed (continue connection to server
  without authentication)
- "reconnect": disconnect and schedule a reconnection to server
- "disconnect": disconnect
2014-11-23 10:38:09 +01:00
Sébastien Helleu 570beab90a irc: merge arrays with server options names and default values into a single array 2014-11-23 09:30:26 +01:00
Max Teufel 78234956b0 irc: add option irc.server.*.sasl_disconnect_on_fail (task #12204) 2014-11-22 13:44:44 +01:00
Sébastien Helleu 474541b857 irc: add support of "away-notify" capability (closes #12) 2014-03-30 16:16:13 +02:00
Sebastien Helleu 9b380a935b core: fix use of reserved C identifiers in headers (closes #31) 2014-03-19 10:39:13 +01:00
Sebastien Helleu 3acdcee0d9 irc: use MONITOR instead of ISON for /notify when it is available on server (task #11477) (patch from Nils Görs) 2014-01-23 11:31:57 +01:00
Maarten de Vries 357740f455 irc: add server option "ssl_fingerprint" (task #12724) 2014-01-21 10:35:38 +01:00
Sebastien Helleu 5668e2ab12 irc: use statusmsg from message 005 to check prefix char in status notices/messages 2014-01-02 10:47:18 +01:00
Sebastien Helleu 892aa79fb5 core: update copyright dates 2014-01-01 00:14:12 +01:00
Sebastien Helleu d82f8c8165 irc: add server option "default_msg_kick" to customize default kick/kickban message (task #12777) (patch from Nils Görs) 2013-10-08 19:57:04 +02:00
Sebastien Helleu 9951902c7b irc: use 6697 as default port for SSL servers created with URL "ircs://" (bug #39621) 2013-07-30 19:51:23 +02:00
Sebastien Helleu 149c77decd core: fix typos in many comments and some strings 2013-03-17 12:55:20 +01:00
Sebastien Helleu c1bc23b052 irc: fix memory leak in purge of hashtables with joins (it was done only for the first server in the list) 2013-02-16 10:00:28 +01:00
Sebastien Helleu f97598b4aa core: update copyright dates 2013-01-01 13:12:49 +01:00
Simon Arlott 248aa8d73a api: connect with IPv6 by default in hook_connect (with fallback to IPv4), shuffle list of hosts for a same address (task #11205) 2012-10-14 10:59:00 +02:00
Sebastien Helleu 5cfeb2f2bc irc: add option "-noswitch" for command /join (task #12275) 2012-10-09 21:33:09 +02:00
Sebastien Helleu 5931eed85d irc: remove unneeded server disconnect when server buffer is closed and server is already disconnected
This commit fixes a problem with the script autoconnect.py: the script hooks
signal "irc_server_disconnected", and this signal was sent 2 times for each
server on /quit: one time when servers are disconnected, and one time when
servers are destroyed (because buffer is closed, and then server disconnected
again). The script forces save of irc.conf on each disconnection, so some
servers were lost in irc.conf, when some servers have already been destroyed.
2012-10-06 16:07:53 +02:00
Peter Boström a80635c8b2 irc: fix rejoin of channels with a key, ignore value "*" sent by server for key (bug #24131) 2012-09-18 18:08:21 +02:00
Sebastien Helleu 7f3d7e5f29 irc: generate alternate nicks dynamically when all nicks are already in use (task #12209) 2012-08-22 19:28:19 +02:00
Sebastien Helleu 21b87c428c irc: update channel modes by using chanmodes from message 005 (do not send extra command "MODES" to server), fix parsing of modes (bug #36215) 2012-05-15 12:48:50 +02:00
Sebastien Helleu 370a5ccb61 irc: add option "fakerecv" for command /server to simulate a received IRC message (not documented, for debug only) 2012-05-08 15:05:53 +02:00
Sebastien Helleu b69e82cb94 irc: do not allow the creation of two servers with same name but different case (fix error when writing file irc.conf) (bug #35840) 2012-03-17 10:14:25 +01:00
Sebastien Helleu 588921686d irc: rename server option "cap" to "capabilities" 2012-02-19 20:20:04 +01:00
Sebastien Helleu af72bcb01d irc: add option "cap" in servers to enable capabilities on connection 2012-02-19 19:04:11 +01:00
Sebastien Helleu 47e4a03be6 core: update copyright dates 2012-01-08 18:59:50 +01:00
Sebastien Helleu a35364524a irc: add optional server in info "irc_is_channel" (before channel name) (bug #35124), add optional server in info_hashtable "irc_message_parse" 2011-12-25 23:00:18 +01:00