]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_close.cpp
Replace GetServerPort() with server_sa.port().
[user/henk/code/inspircd.git] / src / modules / m_close.cpp
index 3f0eedaafcfb9e961ddf779422b37ee75fc306e5..c2a94a6ff57d6e83a8ac35a839674211e96d65d9 100644 (file)
@@ -31,7 +31,7 @@ class CommandClose : public Command
                flags_needed = 'o';
        }
 
-       CmdResult Handle (const std::vector<std::string> &parameters, User *src)
+       CmdResult Handle(User* src, const Params& parameters) CXX11_OVERRIDE
        {
                std::map<std::string,int> closed;
 
@@ -44,7 +44,7 @@ class CommandClose : public Command
                        if (user->registered != REG_ALL)
                        {
                                ServerInstance->Users->QuitUser(user, "Closing all unknown connections per request");
-                               std::string key = ConvToStr(user->GetIPString())+"."+ConvToStr(user->GetServerPort());
+                               std::string key = ConvToStr(user->GetIPString())+"."+ConvToStr(user->server_sa.port());
                                closed[key]++;
                        }
                }