]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_die.c
Allow the final parameter of MLOCK to be empty, to remove an existing mlock
[irc/rqf/shadowircd.git] / modules / core / m_die.c
index b8b13bb792bf6422a4f0f67493eb4e38f8383107..7d2a058691aa54465753cc96636dfa6cb21bd828 100644 (file)
@@ -21,7 +21,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_die.c 3295 2007-03-28 14:45:46Z jilles $
  */
 
 #include "stdinc.h"
@@ -104,6 +103,13 @@ me_die(struct Client *client_p __unused, struct Client *source_p, int parc, cons
 static int
 do_die(struct Client *source_p, const char *servername)
 {
+       /* this makes sure both servernames match otherwise weirdness will occur */
+       if(irccmp(servername, me.name))
+       {
+               sendto_one_notice(source_p, ":Mismatch on /die %s", me.name);
+               return 0;
+       }
+
        ircd_shutdown(get_client_name(source_p, HIDE_IP));
 
        return 0;