X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/550e851c5eee26dad124e3caa6e60b07ea575d5a..b5bf3505123e6667643af92563f2d14d6ab3b7c1:/modules/m_restart.c diff --git a/modules/m_restart.c b/modules/m_restart.c index 42041186..3bdb1df2 100644 --- a/modules/m_restart.c +++ b/modules/m_restart.c @@ -24,7 +24,6 @@ #include "stdinc.h" #include "client.h" -#include "common.h" #include "match.h" #include "ircd.h" #include "numeric.h" @@ -59,10 +58,6 @@ DECLARE_MODULE_AV2(restart, NULL, NULL, restart_clist, NULL, NULL, NULL, NULL, r static void mo_restart(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { - char buf[BUFSIZE]; - rb_dlink_node *ptr; - struct Client *target_p; - if(!IsOperDie(source_p)) { sendto_one(source_p, form_str(ERR_NOPRIVS), @@ -99,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]); }