Mercurial > pidgin.yaz
comparison src/protocols/irc/cmds.c @ 12013:39734dd473e0
[gaim-migrate @ 14306]
sf patch #1167921, from Joao Lu??s Marques Pinto
"This patch adds the command /nickserv, /chanserv,
/memoserv, /operserv, it is safer than the /msg option
because more modern ircds will ensure that the message
is routed to a service and not to a "fake" client."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 09 Nov 2005 00:59:09 +0000 |
parents | ddb7520d57bd |
children | 879f90dbd21f |
comparison
equal
deleted
inserted
replaced
12012:16f75a4d9fec | 12013:39734dd473e0 |
---|---|
432 g_free(buf); | 432 g_free(buf); |
433 | 433 |
434 return 0; | 434 return 0; |
435 } | 435 } |
436 | 436 |
437 int irc_cmd_service(struct irc_conn *irc, const char *cmd, const char *target, const char **args) | |
438 { | |
439 char *capital_cmd, *buf; | |
440 | |
441 if (!args || !args[0]) | |
442 return 0; | |
443 | |
444 /* cmd will be one of nickserv, chanserv, memoserv or operserv */ | |
445 capital_cmd = g_ascii_strup(cmd, -1); | |
446 buf = irc_format(irc, "v:", capital_cmd, args[0]); | |
447 irc_send(irc, buf); | |
448 g_free(capital_cmd); | |
449 g_free(buf); | |
450 | |
451 return 0; | |
452 } | |
453 | |
437 int irc_cmd_time(struct irc_conn *irc, const char *cmd, const char *target, const char **args) | 454 int irc_cmd_time(struct irc_conn *irc, const char *cmd, const char *target, const char **args) |
438 { | 455 { |
439 char *buf; | 456 char *buf; |
440 | 457 |
441 buf = irc_format(irc, "v", "TIME"); | 458 buf = irc_format(irc, "v", "TIME"); |