diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-color.c | 4 | ||||
-rw-r--r-- | src/plugins/irc/irc-command.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-color.c b/src/plugins/irc/irc-color.c index d986c0bd7..4ec0aded8 100644 --- a/src/plugins/irc/irc-color.c +++ b/src/plugins/irc/irc-color.c @@ -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); diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 437714cdf..072068883 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -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, |