diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-04-03 15:54:28 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-04-03 15:54:28 +0200 |
commit | 886f1ba488a5ab9d7fe4d7b4ac6b9c9dc2841738 (patch) | |
tree | 02eabf80806341753a17e6d1e68cacbc41ee484c /src/modules/m_svshold.cpp | |
parent | 2bcb73e8339d4ad9db6c0e9cd1307b522f3fcde5 (diff) |
Convert InspIRCd::Duration() to be static
Diffstat (limited to 'src/modules/m_svshold.cpp')
-rw-r--r-- | src/modules/m_svshold.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp index 128d610ca..93fb8a12f 100644 --- a/src/modules/m_svshold.cpp +++ b/src/modules/m_svshold.cpp @@ -122,8 +122,7 @@ class CommandSvshold : public Command if (parameters.size() < 3) return CMD_FAILURE; - // Adding - XXX todo make this respect <insane> tag perhaps.. - long duration = ServerInstance->Duration(parameters[1]); + unsigned long duration = InspIRCd::Duration(parameters[1]); SVSHold* r = new SVSHold(ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), parameters[0].c_str()); if (ServerInstance->XLines->AddLine(r, user)) |