]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/servercommand.cpp
Fix some confusing logic in sanick.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / servercommand.cpp
index ef55cd00ef04aedaa38c0725197ab0b32e53919b..5473ef077143d7f92056436fcbf8df409ea41cbc 100644 (file)
@@ -1,7 +1,8 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2013 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2018 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2013-2015 Attila Molnar <attilamolnar@hush.com>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
@@ -32,7 +33,7 @@ void ServerCommand::RegisterService()
        st->CmdManager.AddCommand(this);
 }
 
-RouteDescriptor ServerCommand::GetRouting(User* user, const std::vector<std::string>& parameters)
+RouteDescriptor ServerCommand::GetRouting(User* user, const Params& parameters)
 {
        // Broadcast server-to-server commands unless overridden
        return ROUTE_BROADCAST;
@@ -40,7 +41,7 @@ RouteDescriptor ServerCommand::GetRouting(User* user, const std::vector<std::str
 
 time_t ServerCommand::ExtractTS(const std::string& tsstr)
 {
-       time_t TS = ConvToInt(tsstr);
+       time_t TS = ConvToNum<time_t>(tsstr);
        if (!TS)
                throw ProtocolException("Invalid TS");
        return TS;