]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/stats.cpp
Fix FIDENT response forging to run prior to the ENCAP strip
[user/henk/code/inspircd.git] / src / stats.cpp
index df41d26da0b61adbc80574092713b2a286eb8d9e..fb4e5e7a54317c23acd08fd28841b57cd8765c4a 100644 (file)
@@ -80,10 +80,7 @@ void InspIRCd::DoStats(char statschar, User* user, string_list &results)
                                else
                                        res << c->host;
 
-                               if (c->port)
-                                       res << ' ' << c->port << ' ';
-                               else
-                                       res << " * ";
+                               res << ' ' << c->config->getString("port", "*") << ' ';
 
                                res << c->GetRecvqMax() << ' ' << c->GetSendqSoftMax() << ' ' << c->GetSendqHardMax()
                                        << ' ' << c->GetCommandRate() << ' ' << c->GetPenaltyThreshold();