Mercurial > pidgin.yaz
diff src/protocols/irc/cmds.c @ 13881:5d5e249c488e
[gaim-migrate @ 16361]
------------------------------------------------------------------------
r16360 | eblanton | 2006-06-27 17:54:44 -0400 (Tue, 27 Jun 2006) | 1 line
IRC support for CTCP VERSION from Andrej Krivulk
------------------------------------------------------------------------
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Tue, 27 Jun 2006 21:55:47 +0000 |
parents | 1a862fb5e713 |
children | 3d1cee0d360d |
line wrap: on
line diff
--- a/src/protocols/irc/cmds.c Tue Jun 27 16:28:20 2006 +0000 +++ b/src/protocols/irc/cmds.c Tue Jun 27 21:55:47 2006 +0000 @@ -127,6 +127,21 @@ return 1; } +int irc_cmd_ctcp_version(struct irc_conn *irc, const char *cmd, const char *target, const char **args) +{ + char *buf; + + + if (!args || !args[0]) + return 0; + + buf = irc_format(irc, "vn:", "PRIVMSG", args[0], "\001VERSION\001"); + irc_send(irc, buf); + g_free(buf); + + return 0; +} + int irc_cmd_invite(struct irc_conn *irc, const char *cmd, const char *target, const char **args) { char *buf;