# HG changeset patch # User Eric Warmenhoven # Date 1000765267 0 # Node ID 171d11fb37b9f7e5382dd669b05181d57b8f8c49 # Parent d2686f757d6ecef62be0200f5d20b745f5470f35 [gaim-migrate @ 2311] /say /help committer: Tailor Script diff -r d2686f757d6e -r 171d11fb37b9 src/protocols/irc/irc.c --- a/src/protocols/irc/irc.c Mon Sep 17 21:30:47 2001 +0000 +++ b/src/protocols/irc/irc.c Mon Sep 17 22:21:07 2001 +0000 @@ -1129,6 +1129,11 @@ return; g_snprintf(buf, sizeof(buf), "%s\r\n", word_eol[2]); irc_write(id->fd, buf, strlen(buf)); + } else if (!g_strcasecmp(pdibuf, "SAY")) { + if (!*word_eol[2]) + return; + g_snprintf(buf, sizeof(buf), "PRIVMSG %s :%s\r\n", who, word_eol[2]); + irc_write(id->fd, buf, strlen(buf)); } else if (!g_strcasecmp(pdibuf, "KICK")) { if (!*word[2]) return; @@ -1164,6 +1169,19 @@ g_snprintf(buf, sizeof(buf), _("You have left %s"), chan); do_error_dialog(buf, _("IRC Part")); } + } else if (!g_strcasecmp(pdibuf, "HELP")) { + struct conversation *c = NULL; + if (is_channel(gc, who)) { + c = irc_find_chat(gc, who); + } else { + c = find_conversation(who); + } + if (!c) + return; + write_to_conv(c, "Currently supported commands:
" + "JOIN PART TOPIC
" + "OP DEOP VOICE DEVOICE KICK
" + "NICK ME QUOTE SAY

", WFLAG_SYSTEM, NULL, time(NULL)); } }