]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_invite.cpp
Remove unneeded "fd" member of issl_session
[user/henk/code/inspircd.git] / src / commands / cmd_invite.cpp
index 9e74b541bfd3e5122854f29211279341b97ee0e1..1e8d06e96b7aad2c230bb6f95f078649236fd896 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -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 = ServerInstance->Time() + ServerInstance->Duration(parameters[2]);
+                       else
+                               timeout = ConvToInt(parameters[2]);
                }
 
                if ((!c) || (!u))