mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
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:
parent
f648e55505
commit
3816f3dd12
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user