summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-23 20:37:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-23 20:37:20 +0000
commit3816f3dd12c47cf7dfb241eaa98db6a555749893 (patch)
tree5203da6204295b564c9ad02ebed02b4e962c83e6 /src
parentf648e5550550819d875246855fef40c9bec80839 (diff)
Made bans check both real and fake host
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2873 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/channels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 4a110bdb2..19cf14d55 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -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;