From bdebd455be4e0a53bd0d5ab6b76de2e7a4b7ec55 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sat, 31 Mar 2007 13:20:19 -0400 Subject: [PATCH] For giveownership to new members, give old owner access 499 instead of 400. src/chanserv.c (cmd_giveownership): When the new user did not exist, give them UL_OWNER-1 (499) access rather than UL_COOWNER, so that when the access levels are swapped later, the previous owner ends up with 499. --- src/chanserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chanserv.c b/src/chanserv.c index 8be8a27..f80e81c 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -5949,7 +5949,7 @@ static CHANSERV_FUNC(cmd_giveownership) { if(force) { - new_owner = add_channel_user(cData, new_owner_hi, UL_COOWNER, 0, NULL); + new_owner = add_channel_user(cData, new_owner_hi, UL_OWNER - 1, 0, NULL); } else { -- 2.20.1