X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/5ff039e9232c50e55728f9e87ab84d7bc43f8f79..c554add299fb870b44957e3c7f7a8e743abceb1c:/modules/core/m_die.c diff --git a/modules/core/m_die.c b/modules/core/m_die.c index b8b13bb..7d2a058 100644 --- a/modules/core/m_die.c +++ b/modules/core/m_die.c @@ -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;