From b5d9427a78518d8f880243772b26488ece558b36 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 25 Jun 2011 11:34:16 +0200 Subject: [PATCH] invite: Remove useless IsChannelName check. --- modules/m_invite.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/modules/m_invite.c b/modules/m_invite.c index b8782d03..e3190747 100644 --- a/modules/m_invite.c +++ b/modules/m_invite.c @@ -92,14 +92,6 @@ m_invite(struct Client *client_p, struct Client *source_p, int parc, const char return 0; } - if(!IsChannelName(parv[2])) - { - if(MyClient(source_p)) - sendto_one_numeric(source_p, ERR_NOSUCHCHANNEL, - form_str(ERR_NOSUCHCHANNEL), parv[2]); - return 0; - } - /* Do not send local channel invites to users if they are not on the * same server as the person sending the INVITE message. */