summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-02-08 23:34:34 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-02-08 23:34:34 +0100
commitb2f34610fd4e1b0414e1181724c964ad08b4ceea (patch)
tree841395b51fd08bb1d1a5f7bd08ee0d966d80cbbf /src/plugins/irc/irc-command.c
parentc3915eaf040f9b9f03aa8b3319892577d30bb643 (diff)
downloadweechat-b2f34610fd4e1b0414e1181724c964ad08b4ceea.zip
Fix nick displayed by command /msg (bug #25518)
Diffstat (limited to 'src/plugins/irc/irc-command.c')
-rw-r--r--src/plugins/irc/irc-command.c23
1 files changed, 6 insertions, 17 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index cad86a5d9..c53de7991 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -2022,12 +2022,8 @@ irc_command_msg (void *data, struct t_gui_buffer *buffer, int argc,
ptr_nick = NULL;
string = irc_color_decode (argv_eol[2],
weechat_config_boolean (irc_config_network_colors_receive));
- weechat_printf (ptr_channel->buffer,
- "%s%s",
- irc_nick_as_prefix ((ptr_nick) ? ptr_nick : NULL,
- (ptr_nick) ? NULL : ptr_server->nick,
- IRC_COLOR_CHAT_NICK_SELF),
- (string) ? string : argv_eol[2]);
+ irc_input_user_message_display (ptr_channel->buffer,
+ (string) ? string : argv_eol[2]);
if (string)
free (string);
@@ -2048,13 +2044,8 @@ irc_command_msg (void *data, struct t_gui_buffer *buffer, int argc,
ptr_nick = NULL;
string = irc_color_decode (argv_eol[2],
weechat_config_boolean (irc_config_network_colors_receive));
- weechat_printf (ptr_channel->buffer,
- "%s%s",
- irc_nick_as_prefix ((ptr_nick) ? ptr_nick : NULL,
- (ptr_nick) ? NULL : ptr_server->nick,
- IRC_COLOR_CHAT_NICK_SELF),
- (string) ?
- string : argv_eol[2]);
+ irc_input_user_message_display (ptr_channel->buffer,
+ (string) ? string : argv_eol[2]);
if (string)
free (string);
}
@@ -2098,10 +2089,8 @@ irc_command_msg (void *data, struct t_gui_buffer *buffer, int argc,
targets[i]);
if (ptr_channel)
{
- weechat_printf (ptr_channel->buffer,
- "%s%s",
- IRC_COLOR_CHAT,
- (string) ? string : argv_eol[2]);
+ irc_input_user_message_display (ptr_channel->buffer,
+ (string) ? string : argv_eol[2]);
}
else
{