diff options
Diffstat (limited to 'src/configreader.cpp')
-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); |