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
This commit is contained in:
w00t 2008-05-18 18:40:51 +00:00
parent 3e3b3d18a4
commit 9010a88320

View File

@ -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);