]> jfr.im git - irc/freenode/solanum.git/commitdiff
Multiply out handle_remote_unresv
authorEd Kellett <redacted>
Sun, 1 Nov 2020 04:05:18 +0000 (04:05 +0000)
committerEd Kellett <redacted>
Sun, 1 Nov 2020 04:20:44 +0000 (04:20 +0000)
modules/m_resv.c

index 27f02084b3743aa6e98644d04e6b267d24a566cd..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);
 
 /*
@@ -467,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
@@ -477,13 +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)
-{
-       remove_resv(source_p, name, 0);
+       remove_resv(source_p, parv[1], 0);
 }
 
 static void