]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_restart.c
mkpasswd: Default to SHA512 instead of inherently insecure DES.
[irc/rqf/shadowircd.git] / modules / m_restart.c
index 71388fe5b8951709e665723daa2aa9cfb245acc9..36dbf9c56832ec3d9b3f66a0c5715d14451ed39d 100644 (file)
@@ -21,7 +21,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_restart.c 3161 2007-01-25 07:23:01Z nenolod $
  */
 
 #include "stdinc.h"
@@ -111,6 +110,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;