int temp_time;
int loc = 1;
+ if(!IsOperResv(source_p))
+ {
+ sendto_one(source_p, form_str(ERR_NOPRIVS),
+ me.name, source_p->name, "resv");
+ return 0;
+ }
+
/* RESV [time] <name> [ON <server>] :<reason> */
if((temp_time = valid_temp_time(parv[loc])) >= 0)
static int
mo_unresv(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
{
+ if(!IsOperResv(source_p))
+ {
+ sendto_one(source_p, form_str(ERR_NOPRIVS),
+ me.name, source_p->name, "resv");
+ return 0;
+ }
+
if((parc == 4) && (irccmp(parv[2], "ON") == 0))
{
if(!IsOperRemoteBan(source_p))