From: Michael Poole Date: Mon, 21 Sep 2009 02:05:56 +0000 (-0400) Subject: Fix typo when parsing channel mode changes for +A, from SF bug #2787760. X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=da4f55931f455704377dd361895130c33748df0c Fix typo when parsing channel mode changes for +A, from SF bug #2787760. src/proto-p10.c (mod_chanmode_parse): Use new_apass rather than new_upass when parsing mode +A changes. --- diff --git a/src/proto-p10.c b/src/proto-p10.c index 9c8862b..7254d4a 100644 --- a/src/proto-p10.c +++ b/src/proto-p10.c @@ -2366,7 +2366,7 @@ mod_chanmode_parse(struct chanNode *channel, char **modes, unsigned int argc, un case 'A': if (add) { if ((in_arg >= argc) - || keyncpy(change->new_upass, modes[in_arg++], sizeof(change->new_upass))) + || keyncpy(change->new_apass, modes[in_arg++], sizeof(change->new_apass))) goto error; change->modes_set |= MODE_APASS; } else {