src/protocols/irc/cmds.c

changeset 6365
26df8a3df4c5
parent 6350
22dfc953f2fb
child 6371
e92b66ee5518
equal deleted inserted replaced
6364:72f1cddaf4ab 6365:26df8a3df4c5
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;

mercurial