From 5c090a439fae40313b4add51e2a5a3685022e298 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 7 Sep 2008 19:34:02 +0000 Subject: 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 --- src/commands/cmd_invite.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/commands/cmd_invite.cpp') 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& 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)) -- cgit v1.2.3