X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/1328da86184d5edeedc9e304a761e27e910ef3ee..91e46e62e5f9faf6735e0c41ce21113939cacb85:/modules/m_resv.c diff --git a/modules/m_resv.c b/modules/m_resv.c index 1659373..963a4ee 100644 --- a/modules/m_resv.c +++ b/modules/m_resv.c @@ -84,6 +84,13 @@ mo_resv(struct Client *client_p, struct Client *source_p, int parc, const char * 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] [ON ] : */ if((temp_time = valid_temp_time(parv[loc])) >= 0) @@ -370,6 +377,13 @@ cluster_resv(struct Client *source_p, int temp_time, const char *name, 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))