238
238
if (!args[0] && irc_ischannel(target))
239
239
buf = irc_format(irc, "vc", "MODE", target);
240
240
else if (args[0] && (*args[0] == '+' || *args[0] == '-'))
241
buf = irc_format(irc, "vcv", "MODE", target, args[0]);
241
buf = irc_format(irc, "vcn", "MODE", target, args[0]);
243
buf = irc_format(irc, "vv", "MODE", args[0]);
243
buf = irc_format(irc, "vn", "MODE", args[0]);
246
246
} else if (!strcmp(cmd, "umode")) {
249
249
gc = purple_account_get_connection(irc->account);
250
buf = irc_format(irc, "vnv", "MODE", purple_connection_get_display_name(gc), args[0]);
250
buf = irc_format(irc, "vnc", "MODE", purple_connection_get_display_name(gc), args[0]);