1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

Fixed display bug with /me command (IRC plugin)

This commit is contained in:
Sebastien Helleu
2008-04-03 15:18:59 +02:00
parent 8117668827
commit ad199b41ae
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ irc_color_decode (unsigned char *string, int keep_irc_colors,
(void) keep_irc_colors;
(void) keep_weechat_attr;
return NULL;
return (unsigned char *)strdup ((char *)string);
/*out_length = (strlen ((char *)string) * 2) + 1;
out = malloc (out_length);
@@ -206,7 +206,7 @@ irc_color_decode_for_user_entry (unsigned char *string)
(void) string;
return NULL;
return (unsigned char *)strdup ((char *)string);
/*out_length = (strlen ((char *)string) * 2) + 1;
out = malloc (out_length);
+2 -1
View File
@@ -78,7 +78,8 @@ irc_command_me_channel (struct t_irc_server *server,
string = (arguments && arguments[0]) ?
(char *)irc_color_decode ((unsigned char *)arguments, 1, 0) : NULL;
weechat_printf (channel->buffer,
"%s%s %s%s",
"%s%s%s %s%s",
weechat_prefix ("action"),
IRC_COLOR_CHAT_NICK,
server->nick,
IRC_COLOR_CHAT,