summaryrefslogtreecommitdiff
path: root/src/commands/cmd_kline.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-04-03 15:54:28 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-03 15:54:28 +0200
commit886f1ba488a5ab9d7fe4d7b4ac6b9c9dc2841738 (patch)
tree02eabf80806341753a17e6d1e68cacbc41ee484c /src/commands/cmd_kline.cpp
parent2bcb73e8339d4ad9db6c0e9cd1307b522f3fcde5 (diff)
Convert InspIRCd::Duration() to be static
Diffstat (limited to 'src/commands/cmd_kline.cpp')
-rw-r--r--src/commands/cmd_kline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_kline.cpp b/src/commands/cmd_kline.cpp
index ce3642f91..34920a4bf 100644
--- a/src/commands/cmd_kline.cpp
+++ b/src/commands/cmd_kline.cpp
@@ -76,7 +76,7 @@ CmdResult CommandKline::Handle (const std::vector<std::string>& parameters, User
return CMD_FAILURE;
}
- long duration = ServerInstance->Duration(parameters[1].c_str());
+ unsigned long duration = InspIRCd::Duration(parameters[1]);
KLine* kl = new KLine(ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), ih.first.c_str(), ih.second.c_str());
if (ServerInstance->XLines->AddLine(kl,user))
{