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_eline.cpp | |
parent | 2bcb73e8339d4ad9db6c0e9cd1307b522f3fcde5 (diff) |
Convert InspIRCd::Duration() to be static
Diffstat (limited to 'src/commands/cmd_eline.cpp')
-rw-r--r-- | src/commands/cmd_eline.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands/cmd_eline.cpp b/src/commands/cmd_eline.cpp index ca39f9061..6fd94d1b8 100644 --- a/src/commands/cmd_eline.cpp +++ b/src/commands/cmd_eline.cpp @@ -69,8 +69,7 @@ CmdResult CommandEline::Handle (const std::vector<std::string>& parameters, User if (ServerInstance->HostMatchesEveryone(ih.first+"@"+ih.second,user)) return CMD_FAILURE; - long duration = ServerInstance->Duration(parameters[1].c_str()); - + unsigned long duration = InspIRCd::Duration(parameters[1]); ELine* el = new ELine(ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), ih.first.c_str(), ih.second.c_str()); if (ServerInstance->XLines->AddLine(el, user)) { |