From da4f55931f455704377dd361895130c33748df0c Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sun, 20 Sep 2009 22:05:56 -0400 Subject: [PATCH] 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. --- src/proto-p10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.20.1