summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-01-24 13:10:09 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-01-24 13:10:09 +0100
commit5c3abeda44cf085ee0ccd36c9779eab6c8c24e61 (patch)
tree6a7eb091f11a9994f29775ab838d8595515e4cbd
parentf1f8173bb5ca5f5ce01ad92d0ccd309f232fc138 (diff)
cmd_invite Fix incorrect parameter being passed to InspIRCd::Duration()
-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 2e32d99b0..67345e0d2 100644
--- a/src/commands/cmd_invite.cpp
+++ b/src/commands/cmd_invite.cpp
@@ -65,7 +65,7 @@ CmdResult CommandInvite::Handle (const std::vector<std::string>& parameters, Use
if (parameters.size() == 3)
{
if (IS_LOCAL(user))
- timeout = ServerInstance->Time() + InspIRCd::Duration(parameters[1]);
+ timeout = ServerInstance->Time() + InspIRCd::Duration(parameters[2]);
else
timeout = ConvToInt(parameters[2]);
}