From: Egor Date: Wed, 11 May 2022 21:08:59 +0000 (+0300) Subject: fix +w mode X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=1217927fada94b3260a29be2b7f230bfbcd01d39;p=patchyircd.git fix +w mode --- diff --git a/irc.c b/irc.c index 723bab4..e5f29d9 100644 --- a/irc.c +++ b/irc.c @@ -755,15 +755,15 @@ int processPacket(struct client_data *client, char *source, char *command, int a case 'w': if (!*argp) // TODO: error msg break; - if (args[0][0] == 'o') + if (argp[0][0] == 'o') list = &chan->listwo; - else if (args[0][0] == 'v') + else if (argp[0][0] == 'v') list = &chan->listwv; else break; // TODO: error msg - if (args[0][1] != ':') + if (argp[0][1] != ':') break; // TODO: error msg - args[0] += 2; + argp[0] += 2; goto set_list; set_list: { if(!*argp) // TODO: error msg