From 9010a8832098780ebf40c716f5b4689e66482846 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 18 May 2008 18:40:51 +0000 Subject: 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 --- src/configreader.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/configreader.cpp') 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); -- cgit v1.2.3