X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/658a333d6561e72ebcd3134ebe651f794dc60489..8097430a810ac1535fe5304f74991b16ff58b064:/modules/m_restart.c diff --git a/modules/m_restart.c b/modules/m_restart.c index 5ff84f9..2802880 100644 --- a/modules/m_restart.c +++ b/modules/m_restart.c @@ -111,11 +111,12 @@ do_restart(struct Client *source_p, const char *servername) rb_dlink_node *ptr; struct Client *target_p; + /* this makes sure both servernames match otherwise weirdness will occur */ if(irccmp(servername, me.name)) { sendto_one_notice(source_p, ":Mismatch on /restart %s", me.name); return 0; - } + } RB_DLINK_FOREACH(ptr, lclient_list.head) {