For giveownership to new members, give old owner access 499 instead of 400.
authorMichael Poole <mdpoole@troilus.org>
Sat, 31 Mar 2007 17:20:19 +0000 (13:20 -0400)
committerMichael Poole <mdpoole@troilus.org>
Sat, 31 Mar 2007 17:20:19 +0000 (13:20 -0400)
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

index 8be8a276c5b534fb6de81f6b943d3957a0848676..f80e81cd1273fecd8cc8d2c7aa7e3710081eb0e7 100644 (file)
@@ -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
         {