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

89 Commits

Author SHA1 Message Date
Sebastien Helleu 27a427c708 irc: fix uninitialized variable "color" when hashing nickname to find color 2013-06-29 12:39:42 +02:00
Sebastien Helleu 4654568413 irc: add option irc.look.nick_color_hash: hash algorithm to find nick color (patch #8062) 2013-06-02 23:00:26 +02:00
Sebastien Helleu 16cc0b6088 core: make nick prefix/suffix dynamic (move options from irc plugin to core, add logger options) (bug #37531) 2013-04-29 18:30:59 +02:00
Sebastien Helleu bfd8c6918c irc: add support of UHNAMES (capability "userhost-in-names") (task #9353) 2013-04-23 21:23:07 +02:00
Sebastien Helleu 19acf8121f irc: fix prefix color for nick when the prefix is not in irc.color.nick_prefixes: use default color (key "*")
Problem was happening on a server which has "PREFIX=(Yqaohv)!~&@%+".
Users with prefix "!" were displayed as lightred (color for "~") instead of
lightblue (default key "*").

When a prefix was not found, WeeChat was looping on other prefixes (in
order). Now if color is not found, WeeChat uses immediately the fallback color.
2013-03-21 20:16:49 +01:00
Sebastien Helleu 149c77decd core: fix typos in many comments and some strings 2013-03-17 12:55:20 +01:00
Sebastien Helleu 05390016c0 irc: add color in output of /names when result is on server buffer (channel not joined) (bug #38070) 2013-01-25 19:05:23 +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 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 a4e15e8ef4 irc: move options weechat.look.nickmode{_empty} to irc.look.nick_mode{_empty}, add nick mode for action messages (patch from Nils Görs)
The option irc.look.nick_mode has a new type: integer with values:
none/prefix/action/both (default is "prefix", which is old behaviour).
2012-08-20 18:25:23 +02:00
Sebastien Helleu eab0110732 core: add support of arrays in hdata variables 2012-07-20 18:12:07 +02:00
Sebastien Helleu 1c1ef05451 irc: use computed nick color in many messages instead of option weechat.color.chat_nick 2012-03-12 19:26:26 +01:00
Sebastien Helleu fe3bdb5f52 irc: compute hash to find nick color for nick in server message when nick is not in nicklist 2012-03-06 18:03:03 +01:00
Sebastien Helleu f3dc2e7ef9 irc: add search for lower case nicks in option irc.look.nick_color_force 2012-02-26 18:18:37 +01:00
Sebastien Helleu 47e4a03be6 core: update copyright dates 2012-01-08 18:59:50 +01:00
Sebastien Helleu 5ee0e798b1 irc: do not use option irc.look.nick_color_stop_chars for forced nick colors (bug #33480) 2011-12-27 18:20:52 +01:00
Sebastien Helleu e3b7c8fdb7 irc: add case insensitive string comparison based on casemapping of server (rfc1459, strict-rfc1459, ascii) (bug #34239) 2011-11-12 10:56:52 +01:00
Sebastien Helleu dfdf42e27b core: remove unneeded whitespace 2011-10-26 20:37:03 +02:00
Sebastien Helleu 25e1e6e23d core: add colors for inactive windows and lines (in merged buffers)
New boolean options to control use of inactive colors:
- weechat.look.color_inactive_message
- weechat.look.color_inactive_prefix
- weechat.look.color_inactive_prefix_buffer
- weechat.look.color_inactive_time

New "inactive" color options:
- weechat.color.chat_inactive_line
- weechat.color.chat_inactive_window
- weechat.color.chat_prefix_buffer_inactive_line
2011-09-22 11:09:16 +02:00
Sebastien Helleu 8fd1d48723 irc: use color "default" for any invalid color in option weechat.color.chat_nick_colors 2011-08-21 13:55:06 +02:00
Sebastien Helleu 19bc95b961 core: many improvements on hdata
New features:
- add optional hdata name for variables in hdata
- add plugin API functions: hdata_get_var_hdata
- use hashtable to store hdata (created by WeeChat and plugins)
- free hdata and infolists created by plugin on plugin unload
- free all hdata on exit
- add "free" option to command /debug hdata
- remove hdata for hooks
2011-06-26 18:15:42 +02:00
Sebastien Helleu c8b2a6a084 core: add "hdata" (direct access to WeeChat/plugin data) 2011-06-13 12:32:27 +02:00
Sebastien Helleu 85c5653713 irc: use nick color for users outside the channel 2011-04-11 15:52:31 +02:00
Sebastien Helleu ceaad9a20d irc: return empty color name for nick prefix when no mode is set (instead of "chat") 2011-03-23 18:55:24 +01:00
Sebastien Helleu 80312dd56a irc: replace options irc.color.nick_prefix_{op|halfop|voice|user} by a single option irc.color.nick_prefixes (task #10888) 2011-03-23 18:29:24 +01:00
Sebastien Helleu be9b4e5910 Refresh nicks colors in nicklist when changing option weechat.color.chat_nick_colors 2011-02-24 12:15:05 +01:00
Sebastien Helleu 4eb2546082 Add new option irc.look.color_nicks_in_nicklist 2011-02-23 16:45:43 +01:00
Sebastien Helleu d24f6e9e17 Update copyright dates 2011-01-01 18:06:29 +01:00
Sebastien Helleu 2ee9f7b0fc Replace the 10 nick color options and number of nick colors by a single option "weechat.color.chat_nick_colors" (comma separated list of colors) 2010-12-20 15:08:30 +01:00
Sebastien Helleu 3248833125 Search nicklist group without leading digits in irc plugin 2010-11-10 12:11:56 +01:00
Sebastien Helleu fcc209a8bf Add new option irc.look.nick_color_force 2010-10-29 23:25:05 +02:00
Sebastien Helleu 804551122a Use function nicklist_nick_set to change nick color (instead of removing/adding nick in nicklist) 2010-10-29 18:41:06 +02:00
Sebastien Helleu 90f06b348e Improve IRC nick prefixes, all modes (even unknown) are used with PREFIX value from message 005 2010-10-28 18:52:18 +02:00
Sebastien Helleu 26e98da4cb Add new options irc.color.nick_prefix and irc.color.nick_suffix 2010-10-13 08:41:03 +02:00
Sebastien Helleu b114d88687 Move some IRC options from network section to server section (task #10664, task #10668)
Options moved: connection_timeout, anti_flood_prio_high, anti_flood_prio_low,
away_check, away_check_max_nicks, default_msg_part, default_msg_quit.
2010-10-09 16:53:06 +02:00
Sebastien Helleu d2d60d4711 Beta version of IRC proxy feature in Relay plugin
Major changes in Relay plugin:
- IRC proxy feature (beta),
- raw buffer.

Changes in IRC plugin:
- add tags for messages sent to servers,
- add signal "irc_input_send" to simulate text/command on an IRC buffer,
- add prefix in infolist "irc_nick".
2010-09-17 14:47:36 +02:00
Sebastien Helleu 54468b8ef3 Add new option irc.look.nick_color_stop_chars 2010-07-17 10:21:25 +02:00
Sebastien Helleu 6562d676fe Update licenses and copyrights, add missing author names in sources 2010-06-22 19:46:28 +02:00
Sebastien Helleu de49e31965 Add IRC info "irc_nick_color_name" to get color name of a nick 2010-06-15 14:13:59 +02:00
Sebastien Helleu ff0a798634 Move options weechat.color.nicklist_prefix to irc plugin
Options renamed or removed:
- weechat.color.nicklist_prefix1 renamed to irc.color.nick_prefix_op
- weechat.color.nicklist_prefix2 renamed to irc.color.nick_prefix_halfop
- weechat.color.nicklist_prefix3 renamed to irc.color.nick_prefix_voice
- weechat.color.nicklist_prefix4 renamed to irc.color.nick_prefix_user
- weechat.color.nicklist_prefix5 removed
2010-06-04 12:35:25 +02:00
Sebastien Helleu b36ed39388 Fix bug with nick prefix '*' (chan founder) on some IRC servers (bug #29890) 2010-05-29 09:18:19 +02:00
Sebastien Helleu 7bb9892e86 Add IRC command /wallchops, fix bug with display of notice for ops (task #10021, bug #29932) 2010-05-23 10:01:38 +02:00
Sebastien Helleu 9cbcc24d4c Add new option irc.color.item_buffer_name_ssl (task #10339) 2010-04-20 22:19:43 +02:00
Sebastien Helleu 31bfcf96c7 Reformat and add comments for description of C sources 2010-04-08 18:15:00 +02:00
Sebastien Helleu e59bbbb40a Add "irc_is_nick" for function info_get to check if a string is a valid IRC nick name (patch #7133) 2010-03-25 10:39:07 +01:00
Sebastien Helleu bd1b6c1794 Add option irc.look.item_nick_prefix, rename some IRC options for bar items 2010-02-06 12:14:45 +01:00
Sebastien Helleu 0ad7b2f6bd Fix IRC nick color for nicks with wide chars (bug #28547) 2010-01-11 15:01:53 +01:00