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:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user