Mercurial > pidgin
comparison 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 Krivul??k
------------------------------------------------------------------------
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 |
comparison
equal
deleted
inserted
replaced
| 13880:b869ab32cccc | 13881:5d5e249c488e |
|---|---|
| 125 } | 125 } |
| 126 | 126 |
| 127 return 1; | 127 return 1; |
| 128 } | 128 } |
| 129 | 129 |
| 130 int irc_cmd_ctcp_version(struct irc_conn *irc, const char *cmd, const char *target, const char **args) | |
| 131 { | |
| 132 char *buf; | |
| 133 | |
| 134 | |
| 135 if (!args || !args[0]) | |
| 136 return 0; | |
| 137 | |
| 138 buf = irc_format(irc, "vn:", "PRIVMSG", args[0], "\001VERSION\001"); | |
| 139 irc_send(irc, buf); | |
| 140 g_free(buf); | |
| 141 | |
| 142 return 0; | |
| 143 } | |
| 144 | |
| 130 int irc_cmd_invite(struct irc_conn *irc, const char *cmd, const char *target, const char **args) | 145 int irc_cmd_invite(struct irc_conn *irc, const char *cmd, const char *target, const char **args) |
| 131 { | 146 { |
| 132 char *buf; | 147 char *buf; |
| 133 | 148 |
| 134 if (!args || !args[0] || !(args[1] || target)) | 149 if (!args || !args[0] || !(args[1] || target)) |
