* 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"
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;