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

Properly display CTCP SOUND on channel

This commit is contained in:
Sebastien Helleu
2005-03-07 19:21:28 +00:00
parent de43c7984a
commit 2b79d0fe5c
8 changed files with 846 additions and 800 deletions
+14
View File
@@ -1067,6 +1067,20 @@ irc_cmd_recv_privmsg (t_irc_server *server, char *host, char *arguments)
gui_printf_color (ptr_channel->buffer,
COLOR_WIN_CHAT, " %s\n", pos);
}
else if (strncmp (pos, "\01SOUND ", 7) == 0)
{
pos += 7;
pos2 = strchr (pos, '\01');
if (pos2)
pos2[0] = '\0';
irc_display_prefix (ptr_channel->buffer, PREFIX_INFO);
gui_printf (ptr_channel->buffer,
_("Received a CTCP SOUND \"%s\" from "),
pos);
gui_printf_color (ptr_channel->buffer,
COLOR_WIN_CHAT_NICK,
"%s\n", host);
}
else
{
ptr_nick = nick_search (ptr_channel, host);