Made bans check both real and fake host

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2873 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-01-23 20:37:20 +00:00
parent f648e55505
commit 3816f3dd12

View File

@ -310,7 +310,7 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri
{
for (BanList::iterator i = Ptr->bans.begin(); i != Ptr->bans.end(); i++)
{
if (match(user->GetFullHost(),i->data))
if ((match(user->GetFullHost(),i->data)) || (match(user->GetFullRealHost(),i->data)))
{
WriteServ(user->fd,"474 %s %s :Cannot join channel (You're banned)",user->nick, Ptr->name);
return NULL;