From 1217927fada94b3260a29be2b7f230bfbcd01d39 Mon Sep 17 00:00:00 2001 From: Egor Date: Thu, 12 May 2022 00:08:59 +0300 Subject: [PATCH] fix +w mode --- irc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.56.0