1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 15:53:12 +02:00

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).
This commit is contained in:
Sebastien Helleu
2012-08-20 18:25:23 +02:00
parent 1fe7d25c8d
commit a4e15e8ef4
31 changed files with 300 additions and 226 deletions
+6 -2
View File
@@ -344,19 +344,23 @@ irc_command_me_channel_display (struct t_irc_server *server,
const char *arguments)
{
char *string;
struct t_irc_nick *ptr_nick;
string = (arguments && arguments[0]) ?
irc_color_decode (arguments,
weechat_config_boolean (irc_config_network_colors_receive)) : NULL;
ptr_nick = irc_nick_search (server, channel, server->nick);
weechat_printf_tags (channel->buffer,
irc_protocol_tags ("privmsg",
"irc_action,notify_none,no_highlight",
server->nick),
"%s%s%s%s %s",
"%s%s%s%s%s%s%s",
weechat_prefix ("action"),
irc_nick_mode_for_display (server, ptr_nick, 0),
IRC_COLOR_CHAT_NICK_SELF,
server->nick,
IRC_COLOR_RESET,
(string) ? IRC_COLOR_RESET : "",
(string) ? " " : "",
(string) ? string : "");
if (string)
free (string);