]> jfr.im git - solanum.git/blobdiff - modules/m_restart.c
m_list: fail on invalid parameters
[solanum.git] / modules / m_restart.c
index cad6bd72dc9231c178e72fdadb219a99b0e59b08..3bdb1df2356d303eb023c70d7fc3a324f9371500 100644 (file)
@@ -24,7 +24,6 @@
 
 #include "stdinc.h"
 #include "client.h"
-#include "common.h"
 #include "match.h"
 #include "ircd.h"
 #include "numeric.h"
@@ -95,13 +94,6 @@ mo_restart(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sour
 static void
 me_restart(struct MsgBuf *msgbuf_p __unused, struct Client *client_p __unused, struct Client *source_p, int parc, const char *parv[])
 {
-       if(!find_shared_conf(source_p->username, source_p->host, source_p->servptr->name, SHARED_DIE))
-       {
-               sendto_one_notice(source_p, ":*** You do not have an appropriate shared block to "
-                               "remotely restart this server.");
-               return;
-       }
-
        do_restart(source_p, parv[1]);
 }