/[svn]/ircd-hybrid/modules/core/m_die.c
ViewVC logotype

Diff of /ircd-hybrid/modules/core/m_die.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

ircd-hybrid-7.2/modules/core/m_die.c revision 34 by lusky, Sun Oct 2 21:05:51 2005 UTC ircd-hybrid/modules/core/m_die.c revision 1028 by michael, Sun Nov 8 13:03:38 2009 UTC
# Line 23  Line 23 
23   */   */
24    
25  #include "stdinc.h"  #include "stdinc.h"
26  #include "tools.h"  #include "list.h"
27  #include "handlers.h"  #include "handlers.h"
28  #include "client.h"  #include "client.h"
 #include "common.h"  
29  #include "ircd.h"  #include "ircd.h"
30  #include "irc_string.h"  #include "irc_string.h"
31  #include "numeric.h"  #include "numeric.h"
# Line 83  mo_die(struct Client *client_p, struct C Line 82  mo_die(struct Client *client_p, struct C
82    
83    if (parc < 2 || EmptyString(parv[1]))    if (parc < 2 || EmptyString(parv[1]))
84    {    {
85      sendto_one(source_p,":%s NOTICE %s :Need server name /die %s",      sendto_one(source_p, ":%s NOTICE %s :Need server name /die %s",
86                 me.name, source_p->name, me.name);                 me.name, source_p->name, me.name);
87      return;      return;
88    }    }
89    
90    if (irccmp(parv[1], me.name))    if (irccmp(parv[1], me.name))
91    {    {
92      sendto_one(source_p,":%s NOTICE %s :Mismatch on /die %s",      sendto_one(source_p, ":%s NOTICE %s :Mismatch on /die %s",
93                 me.name,source_p->name, me.name);                 me.name, source_p->name, me.name);
94      return;      return;
95    }    }
96    
97    ircsprintf(buf, "received DIE command from %s",    ircsprintf(buf, "received DIE command from %s",
98               get_oper_name(source_p));               get_oper_name(source_p));
99    server_die(buf, NO);    server_die(buf, 0);
100  }  }

Legend:
Removed from v.34  
changed lines
  Added in v.1028

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28