mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
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
This commit is contained in:
parent
73b5d276db
commit
5c090a439f
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user