Ignore flags for /w, ircII uses -s by default with "SHOW_CHANNEL_NAMES"

This commit is contained in:
Stuart Henderson 2014-03-05 21:06:17 +00:00
parent 1dd35547d8
commit b28dd0e9f3

8
cmd.c
View File

@ -356,6 +356,14 @@ icb_cmd_who(struct icb_session *is, char *arg)
struct icb_group *ig;
char group[ICB_MAXGRPLEN];
while (strlen(arg) && arg[0] == '-') { /* ignore options, for now */
/* ircII "set SHOW_CHANNEL_NAMES ON" uses /w -s */
while(arg[0] != ' ' && arg[0] != 0)
arg++;
if(arg[0] == ' ')
arg++;
}
if (strlen(arg) == 0)
return icb_who(is, NULL);