Mercurial > pidgin
comparison src/protocols/irc/parse.c @ 8351:ffa642240fc1
[gaim-migrate @ 9075]
marv is incredibly patient, waiting a long time for this to go in
you should all be using Jabber for file transfer anyway, but if you're
still stuck in the stone age, now you can transfer files via IRC
committer: Tailor Script <tailor@pidgin.im>
| author | Nathan Walp <nwalp@pidgin.im> |
|---|---|
| date | Fri, 27 Feb 2004 01:45:26 +0000 |
| parents | 7a6e30eb7aad |
| children | 3f384e95c5c0 |
comparison
equal
deleted
inserted
replaced
| 8350:0018b8118e77 | 8351:ffa642240fc1 |
|---|---|
| 1 /** | 1 /** |
| 2 * @file parse.c | 2 * @file parse.c |
| 3 * | 3 * |
| 4 * gaim | 4 * gaim |
| 5 * | 5 * |
| 6 * Copyright (C) 2003, Ethan Blanton <eblanton@cs.purdue.edu> | 6 * Copyright (C) 2003, Ethan Blanton <eblanton@cs.purdue.edu> |
| 7 * | 7 * |
| 8 * This program is free software; you can redistribute it and/or modify | 8 * This program is free software; you can redistribute it and/or modify |
| 9 * it under the terms of the GNU General Public License as published by | 9 * it under the terms of the GNU General Public License as published by |
| 10 * the Free Software Foundation; either version 2 of the License, or | 10 * the Free Software Foundation; either version 2 of the License, or |
| 11 * (at your option) any later version. | 11 * (at your option) any later version. |
| 12 * | 12 * |
| 305 } | 305 } |
| 306 } else if (!strncmp(cur, "VERSION", 7) && !notice) { | 306 } else if (!strncmp(cur, "VERSION", 7) && !notice) { |
| 307 buf = irc_format(irc, "vt:", "NOTICE", from, "\001VERSION Gaim IRC\001"); | 307 buf = irc_format(irc, "vt:", "NOTICE", from, "\001VERSION Gaim IRC\001"); |
| 308 irc_send(irc, buf); | 308 irc_send(irc, buf); |
| 309 g_free(buf); | 309 g_free(buf); |
| 310 } else if (!strncmp(cur, "DCC SEND ", 9)) { | |
| 311 irc_dccsend_recv(irc, from, msg + 10); | |
| 312 return NULL; | |
| 310 } | 313 } |
| 311 | 314 |
| 312 ctcp = g_strdup(msg + 1); | 315 ctcp = g_strdup(msg + 1); |
| 313 ctcp[strlen(ctcp) - 1] = '\0'; | 316 ctcp[strlen(ctcp) - 1] = '\0'; |
| 314 buf = g_strdup_printf("Received CTCP '%s' (to %s) from %s", ctcp, to, from); | 317 buf = g_strdup_printf("Received CTCP '%s' (to %s) from %s", ctcp, to, from); |
