diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-18 18:40:51 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-18 18:40:51 +0000 |
commit | 9010a8832098780ebf40c716f5b4689e66482846 (patch) | |
tree | 529dc3c56ac5b024258c88c27ca1074a34833639 /src | |
parent | 3e3b3d18a4c4f4a182e1c4b45b34612ae9ec0332 (diff) |
Fix for Jason's bug.. this needs more thought, though. I'll probably whip up something tonight.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9742 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/configreader.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 3f99a52e2..4d55e72e2 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -524,7 +524,12 @@ bool DoConnect(ServerConfig* conf, const char*, char**, ValueList &values, int*) for (ClassVector::iterator item = conf->Classes.begin(); item != conf->Classes.end(); ++item) { ConnectClass* cc = *item; - if ((*name && (cc->GetName() == name)) || (*allow && (cc->GetHost() == allow)) || (*deny && (cc->GetHost() == deny))) + if ( + (*name && (cc->GetName() == name)) || + (*allow && (cc->GetHost() == allow)) || + (*deny && (cc->GetHost() == deny)) || + (port && (cc->GetPort() == port)) + ) { /* reenable class so users can be shoved into it :P */ cc->SetDisabled(false); |