summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands/cmd_invite.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commands/cmd_invite.cpp b/src/commands/cmd_invite.cpp
index 9e74b541b..ac9ad08f9 100644
--- a/src/commands/cmd_invite.cpp
+++ b/src/commands/cmd_invite.cpp
@@ -32,7 +32,10 @@ CmdResult CommandInvite::Handle (const std::vector<std::string>& parameters, Use
time_t timeout = 0;
if (parameters.size() == 3)
{
- timeout = time(NULL) + ServerInstance->Duration(parameters[2]);
+ if (IS_LOCAL(user))
+ timeout = time(NULL) + ServerInstance->Duration(parameters[2]);
+ else
+ timeout = ConvToInt(parameters[2]);
}
if ((!c) || (!u))