From 886f1ba488a5ab9d7fe4d7b4ac6b9c9dc2841738 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 3 Apr 2013 15:54:28 +0200 Subject: Convert InspIRCd::Duration() to be static --- src/commands/cmd_kline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/cmd_kline.cpp') 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& 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)) { -- cgit v1.2.3