Mercurial > pidgin.yaz
comparison src/protocols/irc/cmds.c @ 6365:72bbe310ac77
[gaim-migrate @ 6870]
delete buddies when we delete an account (thanks Vann) and clean up
some compiler warnings in the irc code (thanks Paco-Paco)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 04 Aug 2003 17:44:19 +0000 |
parents | 34c07f5f34a0 |
children | 8f94cce8faa5 |
comparison
equal
deleted
inserted
replaced
6364:07b30424146b | 6365:72bbe310ac77 |
---|---|
195 } else if (!strcmp(cmd, "umode")) { | 195 } else if (!strcmp(cmd, "umode")) { |
196 if (!args[0]) | 196 if (!args[0]) |
197 return 0; | 197 return 0; |
198 gc = gaim_account_get_connection(irc->account); | 198 gc = gaim_account_get_connection(irc->account); |
199 buf = irc_format(irc, "vnv", "MODE", gaim_connection_get_display_name(gc), args[0]); | 199 buf = irc_format(irc, "vnv", "MODE", gaim_connection_get_display_name(gc), args[0]); |
200 } | 200 } else { |
201 irc_send(irc, buf); | 201 return 0; |
202 g_free(buf); | 202 } |
203 | 203 |
204 irc_send(irc, buf); | |
205 g_free(buf); | |
204 | 206 |
205 return 0; | 207 return 0; |
206 } | 208 } |
207 | 209 |
208 int irc_cmd_names(struct irc_conn *irc, const char *cmd, const char *target, const char **args) | 210 int irc_cmd_names(struct irc_conn *irc, const char *cmd, const char *target, const char **args) |
450 | 452 |
451 if (!strcmp(cmd, "wallops")) | 453 if (!strcmp(cmd, "wallops")) |
452 buf = irc_format(irc, "v:", "WALLOPS", args[0]); | 454 buf = irc_format(irc, "v:", "WALLOPS", args[0]); |
453 else if (!strcmp(cmd, "operwall")) | 455 else if (!strcmp(cmd, "operwall")) |
454 buf = irc_format(irc, "v:", "OPERWALL", args[0]); | 456 buf = irc_format(irc, "v:", "OPERWALL", args[0]); |
457 else | |
458 return 0; | |
455 | 459 |
456 irc_send(irc, buf); | 460 irc_send(irc, buf); |
457 g_free(buf); | 461 g_free(buf); |
458 | 462 |
459 return 0; | 463 return 0; |