diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-07 19:34:02 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-07 19:34:02 +0000 |
commit | 5c090a439fae40313b4add51e2a5a3685022e298 (patch) | |
tree | 9f3ec0d01404c19dff541d3fe64e9a558f6c6af8 /src | |
parent | 73b5d276db1903256c7432e333b4db8d01d58d05 (diff) |
Invite timeout on server-to-server is already a unix timestamp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10452 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/cmd_invite.cpp | 5 |
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)) |