Mercurial > pidgin
diff src/protocols/irc/irc.c @ 2305:0371b905baef
[gaim-migrate @ 2315]
hi
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Tue, 18 Sep 2001 18:17:21 +0000 |
| parents | 15fb364935ec |
| children | b2db2a76dcec |
line wrap: on
line diff
--- a/src/protocols/irc/irc.c Tue Sep 18 01:46:56 2001 +0000 +++ b/src/protocols/irc/irc.c Tue Sep 18 18:17:21 2001 +0000 @@ -1135,6 +1135,7 @@ return -EINVAL; g_snprintf(buf, sizeof(buf), "PRIVMSG %s :%s\r\n", who, word_eol[2]); irc_write(id->fd, buf, strlen(buf)); + return 1; } else if (!g_strcasecmp(pdibuf, "MSG")) { if (!*word[2]) return -EINVAL; @@ -1189,9 +1190,20 @@ write_to_conv(c, "<B>Currently supported commands:<BR>" "JOIN PART TOPIC<BR>" "OP DEOP VOICE DEVOICE KICK<BR>" - "NICK ME MSG QUOTE SAY</B><BR>", + "NICK ME MSG QUOTE SAY</B>", WFLAG_SYSTEM, NULL, time(NULL)); + } else { + struct conversation *c = NULL; + if (is_channel(gc, who)) { + c = irc_find_chat(gc, who); + } else { + c = find_conversation(who); + } + if (!c) + return -EINVAL; + write_to_conv(c, "<B>Unsupported command</B>", WFLAG_SYSTEM, NULL, time(NULL)); } + return 0; }
