Mercurial > pidgin
changeset 2302:722a912562a0
[gaim-migrate @ 2312]
/msg
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 17 Sep 2001 23:06:22 +0000 |
parents | 171d11fb37b9 |
children | f5bf315e6104 |
files | src/protocols/irc/irc.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/irc/irc.c Mon Sep 17 22:21:07 2001 +0000 +++ b/src/protocols/irc/irc.c Mon Sep 17 23:06:22 2001 +0000 @@ -1134,6 +1134,13 @@ 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, "MSG")) { + if (!*word[2]) + return; + if (!*word_eol[3]) + return; + g_snprintf(buf, sizeof(buf), "PRIVMSG %s :%s\r\n", word[2], word_eol[3]); + irc_write(id->fd, buf, strlen(buf)); } else if (!g_strcasecmp(pdibuf, "KICK")) { if (!*word[2]) return; @@ -1181,7 +1188,8 @@ write_to_conv(c, "<B>Currently supported commands:<BR>" "JOIN PART TOPIC<BR>" "OP DEOP VOICE DEVOICE KICK<BR>" - "NICK ME QUOTE SAY</B><BR>", WFLAG_SYSTEM, NULL, time(NULL)); + "NICK ME MSG QUOTE SAY</B><BR>", + WFLAG_SYSTEM, NULL, time(NULL)); } }