]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_restart.c
Allow /ojoin !#channel/%#channel, if admin/halfop are enabled.
[irc/rqf/shadowircd.git] / modules / m_restart.c
index 71388fe5b8951709e665723daa2aa9cfb245acc9..2802880534f5920258bac45b04e27fcd08c45108 100644 (file)
@@ -111,6 +111,13 @@ 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)
        {
                target_p = ptr->data;