Sébastien Helleu
6ca604938f
irc: revert compute of nick colors to case sensitive way, deprecate again IRC nick color infos (issue #194 , issue #2032 )
2023-10-19 23:31:49 +02:00
Sébastien Helleu
dd0c20f6b6
irc: add count for all nick modes in output of /names ( closes #97 )
2023-08-26 18:57:21 +02:00
Sébastien Helleu
5d9af29024
api: add infos "nick_color_ignore_case" and "nick_color_name_ignore_case" (issue #194 )
2023-08-24 18:19:32 +02:00
Sébastien Helleu
6aa66b5363
irc: compute color in case insensitive way ( closes #194 )
...
Reintroduce infos "irc_nick_color" and "irc_nick_color_name" (that were
marked deprecated since version 1.5).
A server name is added in the two infos and is optional, for backward
compatibility.
2023-08-24 09:24:51 +02:00
Sébastien Helleu
481e8f197d
core: use type "enum" in options
2023-07-08 13:29:45 +02:00
Sébastien Helleu
cfa2239db5
irc: update message with number of nicks when joining a channel
...
Changed:
- "N voices" to "N voiced"
- "N normals" to "N regular"
2023-01-15 21:12:32 +01:00
Sébastien Helleu
33bba784c3
core: update copyright dates
2023-01-01 14:54:35 +01:00
Sébastien Helleu
c44b79dce7
core: update copyright dates
2022-01-17 18:41:06 +01:00
Sébastien Helleu
691c9a0a0f
irc: add function irc_server_get_chantypes
2021-01-30 10:34:23 +01:00
Sébastien Helleu
0c98b0cfa4
irc: use server option "default_chantypes" as fallback in function irc_nick_is_nick
2021-01-30 09:59:04 +01:00
Sébastien Helleu
efc7a588d6
core: update copyright dates
2021-01-02 21:34:16 +01:00
Sébastien Helleu
5b151d1639
irc: check that the first nick char is not a prefix char or chantype in function irc_nick_is_nick
2020-06-21 10:22:37 +02:00
Sébastien Helleu
12051a506d
irc: add support of UTF8MAPPING, add support of optional server in info "irc_is_nick" ( closes #1528 )
2020-06-20 17:28:28 +02:00
Sébastien Helleu
40ccacb433
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-09 20:04:45 +01:00
Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
34adcde2ff
irc: add extra check on argument "nick" in functions "irc_nick_set_*"
2019-05-14 07:26:48 +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
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
70a930516d
irc: always set nick away status on WHO response (sent manually or automatically with server option "away_check")
2018-04-02 10:36:36 +02:00
Sébastien Helleu
3ce882daee
irc: allocate the string "prefix" in nick
...
This fixes a crash when calling the function hdata_string on the "prefix"
variable in the nick.
2018-04-02 09:58:08 +02:00
Sébastien Helleu
7ee88fb46c
core: fix some styles
2018-01-07 09:11:45 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
2ab40e02e6
Revert "irc: do not use away color for nicks in nicklist if option irc.look.color_nicks_in_nicklist is on"
...
This reverts commit 0c86e742c5 .
2017-08-19 12:47:01 +02:00
Sébastien Helleu
0c86e742c5
irc: do not use away color for nicks in nicklist if option irc.look.color_nicks_in_nicklist is on
2017-08-19 11:24:36 +02:00
Sébastien Helleu
c15c30770e
irc: fix update of nick prefixes when the names are received in message 353 ( closes #1022 )
...
This regression was introduced by commit
fadee50664 (issue #1019 )
2017-06-20 07:21:08 +02:00
Sébastien Helleu
fadee50664
irc: don't reset nick properties (prefixes/away/account/realname) on /names when the nick already exists ( closes #1019 )
2017-06-17 15:22:01 +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
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Sébastien Helleu
fabd48cc6c
core: move nick coloring from irc plugin to core ( closes #262 )
...
Options moved from irc.conf to weechat.conf:
* "irc.look.nick_color_force" moved to "weechat.look.nick_color_force"
* "irc.look.nick_color_hash" moved to "weechat.look.nick_color_hash"
* "irc.look.nick_color_stop_chars" moved to
"weechat.look.nick_color_stop_chars"
New info (for API function "info_get"):
* "nick_color" (replaces "irc_nick_color")
* "nick_color_name" (replaced "irc_nick_color_name")
Info "irc_nick_color" and "irc_nick_color_name" are now deprecated.
And a bug has been fixed in nick coloring: stop chars are removed before
looking at a forced color.
2016-04-05 07:56:43 +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
f26fbb4850
irc: add missing field realname in function irc_nick_print_log()
2015-12-20 10:28: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
bd850398e8
core: add missing comments before functions when the result must be freed after use
2015-07-04 08:24:53 +02:00
Max Teufel
e00d7f2bfd
irc: track realnames using extended-join and WHO
2015-03-07 15:46:02 +01:00
Sébastien Helleu
0f1e997090
irc: add "account" in irc_nick_print_log()
2015-01-25 15:25:41 +01:00
Sébastien Helleu
3c885fa80f
irc: add "account" in irc_nick hdata
2015-01-25 15:24:52 +01:00
Sébastien Helleu
fad11a6b93
irc: remove useless save of variables in irc_nick_new() when updating nick
2015-01-25 15:23:39 +01:00
Sébastien Helleu
62256251be
irc: change type of "account" parameter to "const char *" in irc_nick_new()
2015-01-25 15:16:55 +01:00
Max Teufel
f379adffd0
irc: add support for CAP account-notify
2015-01-24 14:09:54 +01:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +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
e226c2e147
irc: free nick immediately in case of malloc error
2014-08-10 15:50:18 +02:00
Sébastien Helleu
e791c24a2e
irc: allow "$ident" in option irc.network.ban_mask_default ( closes #18 )
2014-03-30 18:58:11 +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
02868b4dc0
core: optimize xxx_valid() functions: return immediately if pointer is NULL
2014-01-09 19:28:51 +01:00