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
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
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Sébastien Helleu
20c86db0d8
api: remove functions printf_date() and printf_tags()
2016-06-18 08:49:35 +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
ad45fd775d
Merge remote-tracking branch 'origin/pr/351'
2015-12-20 10:13:29 +01:00
Sébastien Helleu
df66b2e6fe
irc: fix type of value returned by function irc_buffer_build_name
2015-07-04 16:36:42 +02:00
Sébastien Helleu
499f36a7cf
irc: optimize search of a nick in nicklist (up to 3x faster)
2015-04-29 21:20:08 +02:00
Max Teufel
522b04155a
irc: use NULL instead of "*" for unidentified nicks
2015-03-07 16:09:40 +01:00
Sébastien Helleu
770152dea7
irc: remove useless rename of channel buffer on JOIN received with different case ( closes #336 )
...
This bug was introduced by commit 624083f41a .
2015-02-21 08:35:26 +01:00
Sébastien Helleu
6a7f6f5095
irc: send WHOX message only if server supports it
2015-01-25 20:30:35 +01:00
Sébastien Helleu
5886820679
irc: remove compiler warning about unused parameter in irc_channel_remove_account()
2015-01-25 15:13:11 +01:00
Sébastien Helleu
0a75d79e93
irc: fix memory leak on nick account in irc_channel_remove_account()
2015-01-25 15:00:38 +01:00
Max Teufel
eea6b07edc
irc: don't keep valid account names when account-notify is disabled
2015-01-24 14:33:39 +01:00
Max Teufel
f379adffd0
irc: add support for CAP account-notify
2015-01-24 14:09:54 +01:00
Sébastien Helleu
a617cd857a
irc: fix restore of query buffers on /upgrade ( closes #315 )
...
After /upgrade it was not possible to send a message in the query buffer or to
receive messages from this nick.
This commit fixes the search of query buffer when creating the irc channel
(with type "private").
The bug was introduced by commit 9749b65f7e .
2015-01-23 20:02:25 +01:00
Sébastien Helleu
9fbd138518
irc: fix order of channel buffers opened ( closes #303 )
2015-01-16 20:20:40 +01:00
Sébastien Helleu
9749b65f7e
irc: fix crash in buffer close when server name is the same as a channel name ( closes #305 )
2015-01-15 22:43:08 +01:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
624083f41a
irc: open channel buffers before the JOIN is received from server (autojoin and manual joins) ( closes #216 )
...
New options:
- irc.look.buffer_open_before_autojoin
- irc.look.buffer_open_before_join
2014-12-14 20:23:45 +01:00
Sébastien Helleu
de067ff6a0
irc: reformat some code to make it more readable
2014-11-01 17:59:02 +01:00
Sébastien Helleu
b1caceb6e5
irc: add argument "server_message" in function irc_nick_color_for_msg
2014-11-01 11:40:21 +01:00
Sébastien Helleu
013165209a
irc: remove IRC color codes from buffer title in channels ( closes #237 )
2014-10-31 07:48:46 +01:00
Sébastien Helleu
37ad9e3684
irc: add option irc.look.join_auto_add_chantype ( closes #65 )
2014-05-06 21:25:31 +02:00
Sébastien Helleu
474541b857
irc: add support of "away-notify" capability ( closes #12 )
2014-03-30 16:16:13 +02:00
Sebastien Helleu
437767c0ca
api: add integer return code for functions hook_{signal|hsignal}_send
2014-02-10 17:42:53 +01:00
Sebastien Helleu
02868b4dc0
core: optimize xxx_valid() functions: return immediately if pointer is NULL
2014-01-09 19:28:51 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
Sebastien Helleu
d52d214448
core: add buffer property "highlight_tags_restrict", rename option irc.look.highlight_tags to irc.look.highlight_tags_restrict
...
The buffer property "highlight_tags" is renamed to "highlight_tags_restrict".
New behavior for buffer property "highlight_tags": force highlight on tags.
Option irc.look.highlight_tags is renamed to irc.look.highlight_tags_restrict.
2013-12-15 13:45:40 +01:00
Sebastien Helleu
95d0d33972
irc: fix memory leak when a channel is deleted
2013-11-23 16:15:36 +01:00
Sebastien Helleu
5ce1a3e867
irc: fix groups in channel nicklist when reconnecting to a server that supports more nick prefixes than the previously connected server
2013-11-07 20:52:47 +01:00
Sebastien Helleu
cf8a125ef2
irc: fix duplicate nick completion when someone rejoins the channel with same nick but a different case (bug #38841 )
2013-04-28 13:34:44 +02:00
Sebastien Helleu
c8505efac0
irc: add tag "irc_nick_back" for messages displayed in private buffer when a nick is back on server (task #12576 )
2013-04-21 13:26:32 +02:00
Sebastien Helleu
a08603c24c
irc: add option irc.look.display_join_message (task #10895 )
2013-03-24 13:02:26 +01:00
Sebastien Helleu
bbd080e680
irc: add option irc.look.pv_buffer: automatically merge private buffers (optionally by server) (task #11924 )
2013-03-17 22:18:11 +01:00
Sebastien Helleu
149c77decd
core: fix typos in many comments and some strings
2013-03-17 12:55:20 +01:00
Sebastien Helleu
50eb1f51fd
irc: fix crash when unmasking a smart filtered join if a line without tags is displayed after the join
2013-02-18 22:23:03 +01:00
Sebastien Helleu
bc079b007d
irc: unmask smart filtered join if nick speaks in channel some minutes after the join, new option irc.look.smart_filter_join_unmask (task #12405 )
...
The nick changes are tracked and will be unmasked with the join.
Events triggering the unmask of join are: a message (can be CTCP), a notice or
an update of topic.
2013-02-17 13:27:36 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +01:00
Sebastien Helleu
7eb5cc4b97
core: move comments with description of C file to top of files
2012-12-15 12:27:57 +01:00
Sebastien Helleu
7d34812f1c
core: reformat comments for functions
2012-12-13 18:51:44 +01:00
Sebastien Helleu
641de51bdb
api: allow creation of structure with hdata_update (allowed for hdata "history")
2012-12-08 23:54:07 +01:00
Sebastien Helleu
f1d6f2c40a
irc: fix crash on /upgrade (free channels before server data when a server is destroyed) (bug #37736 )
2012-11-14 20:18:10 +01:00
Sebastien Helleu
5cfeb2f2bc
irc: add option "-noswitch" for command /join (task #12275 )
2012-10-09 21:33:09 +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
df80aa5fc9
api: allow update for some variables of hdata, add new functions hdata_update and hdata_set
2012-08-27 09:47:46 +02:00
Sebastien Helleu
eab0110732
core: add support of arrays in hdata variables
2012-07-20 18:12:07 +02:00
Sebastien Helleu
00a9028f42
irc: set callback "nickcmp" in channel buffers
2012-06-14 20:07:06 +02:00
Sebastien Helleu
d4184f78c5
irc: do not send command "MODE #channel" on manual /names (do it only when names are received on join of channel) (bug #35930 )
2012-03-22 16:02:25 +01:00