summaryrefslogtreecommitdiff
path: root/src/commands/cmd_invite.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_invite.cpp
parent2bcb73e8339d4ad9db6c0e9cd1307b522f3fcde5 (diff)
Convert InspIRCd::Duration() to be static
Diffstat (limited to 'src/commands/cmd_invite.cpp')
-rw-r--r--src/commands/cmd_invite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_invite.cpp b/src/commands/cmd_invite.cpp
index fd595d618..11cb549af 100644
--- a/src/commands/cmd_invite.cpp
+++ b/src/commands/cmd_invite.cpp
@@ -61,7 +61,7 @@ CmdResult CommandInvite::Handle (const std::vector<std::string>& parameters, Use
if (parameters.size() == 3)
{
if (IS_LOCAL(user))
- timeout = ServerInstance->Time() + ServerInstance->Duration(parameters[2]);
+ timeout = ServerInstance->Time() + InspIRCd::Duration(parameters[1]);
else
timeout = ConvToInt(parameters[2]);
}