]> jfr.im git - solanum.git/blobdiff - modules/m_resv.c
chmode: Get elevated access for op-only queries
[solanum.git] / modules / m_resv.c
index 84242b951d85445f1f6474bfa4766f8d827e5b07..9e615ea55a6bd0af3005a73ad452aa8eb42158dc 100644 (file)
@@ -69,7 +69,6 @@ static void propagate_resv(struct Client *source_p, const char *target,
 static void cluster_resv(struct Client *source_p, int temp_time,
                         const char *name, const char *reason);
 
-static void handle_remote_unresv(struct Client *source_p, const char *name);
 static void remove_resv(struct Client *source_p, const char *name, int propagated);
 
 /*
@@ -193,12 +192,6 @@ parse_resv(struct Client *source_p, const char *name, const char *reason, int te
 {
        struct ConfItem *aconf;
 
-       if(!MyClient(source_p) &&
-          !find_shared_conf(source_p->username, source_p->host,
-                            source_p->servptr->name,
-                            (temp_time > 0) ? SHARED_TRESV : SHARED_PRESV))
-               return;
-
        if(IsChannelName(name))
        {
                if(hash_find_resv(name))
@@ -473,7 +466,7 @@ ms_unresv(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
        if(!IsPerson(source_p))
                return;
 
-       handle_remote_unresv(source_p, parv[2]);
+       remove_resv(source_p, parv[2], 0);
 }
 
 static void
@@ -483,19 +476,7 @@ me_unresv(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
        if(!IsPerson(source_p))
                return;
 
-       handle_remote_unresv(source_p, parv[1]);
-}
-
-static void
-handle_remote_unresv(struct Client *source_p, const char *name)
-{
-       if(!find_shared_conf(source_p->username, source_p->host,
-                            source_p->servptr->name, SHARED_UNRESV))
-               return;
-
-       remove_resv(source_p, name, 0);
-
-       return;
+       remove_resv(source_p, parv[1], 0);
 }
 
 static void