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/commands/cmd_kline.cpp | |
parent | 2bcb73e8339d4ad9db6c0e9cd1307b522f3fcde5 (diff) |
Convert InspIRCd::Duration() to be static
Diffstat (limited to 'src/commands/cmd_kline.cpp')
-rw-r--r-- | src/commands/cmd_kline.cpp | 2 |
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)) { |