]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/fmode.cpp
Remove whitespace and minor style changes
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / fmode.cpp
index 7e02df6a76da07d866a5902e9eed8c574d327c39..48e4a19b96519ebeadc4162f5baadbd73bbe21d5 100644 (file)
 #include "commands.h"
 
 /** FMODE command - server mode with timestamp checks */
-CmdResult CommandFMode::Handle(const std::vector<std::string>& params, User *who)
+CmdResult CommandFMode::Handle(User* who, std::vector<std::string>& params)
 {
        time_t TS = ConvToInt(params[1]);
        if (!TS)
        {
                ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "*** BUG? *** TS of 0 sent to FMODE. Are some services authors smoking craq, or is it 1970 again?. Dropping link.");
-               ServerInstance->SNO->WriteToSnoMask('d', "WARNING: The server %s is sending FMODE with a TS of zero. Total craq, dropping link.", who->server.c_str());
+               ServerInstance->SNO->WriteToSnoMask('d', "WARNING: The server %s is sending FMODE with a TS of zero. Total craq, dropping link.", who->server->GetName().c_str());
                return CMD_INVALID;
        }
 
@@ -75,5 +75,3 @@ CmdResult CommandFMode::Handle(const std::vector<std::string>& params, User *who
        ServerInstance->Modes->Process(modelist, who, flags);
        return CMD_SUCCESS;
 }
-
-