# arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3
#
+2006-09-03 15:10:58 GMT Michael Poole <mdpoole@troilus.org> patch-25
+
+ Summary:
+ Fix giveownership to how it should be
+ Revision:
+ srvx--devo--1.3--patch-25
+
+ src/chanserv.c (cmd_giveownership): Only require confirmation code if the
+ user has real (normal) access and is not forcing the giveownership.
+
+ modified files:
+ ChangeLog src/chanserv.c
+
+
2006-08-19 13:31:08 GMT Michael Poole <mdpoole@troilus.org> patch-24
Summary:
}
curr_user = owner;
}
- else if (!force && (now < (time_t)(cData->ownerTransfer + chanserv_conf.giveownership_period)))
+ else if(!force && (now < (time_t)(cData->ownerTransfer + chanserv_conf.giveownership_period)))
{
char delay[INTERVALLEN];
intervalString(delay, cData->ownerTransfer + chanserv_conf.giveownership_period - now, user->handle_info);
chanserv_show_dnrs(user, cmd, NULL, new_owner_hi->handle);
return 0;
}
- confirm = make_confirmation_string(curr_user);
- if(!force && ((argc < 3) || strcmp(argv[2], confirm)))
+ if(curr_user && !force && curr_user->access <= UL_OWNER)
{
- reply("CSMSG_CONFIRM_GIVEOWNERSHIP", new_owner_hi->handle, confirm);
- return 0;
+ confirm = make_confirmation_string(curr_user);
+ if(!force && ((argc < 3) || strcmp(argv[2], confirm)))
+ {
+ reply("CSMSG_CONFIRM_GIVEOWNERSHIP", new_owner_hi->handle, confirm);
+ return 0;
+ }
}
if(new_owner->access >= UL_COOWNER)
co_access = new_owner->access;