mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-13 20:49:02 -04:00
Update expiries when we update the set time
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5306 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
8ed63fe681
commit
351e58b5f7
@ -435,6 +435,7 @@ void XLineManager::gline_set_creation_time(const char* host, time_t create_time)
|
||||
if (!strcasecmp(host,(*i)->hostmask))
|
||||
{
|
||||
(*i)->set_time = create_time;
|
||||
(*i)->expiry = create_time + (*i)->duration;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -456,6 +457,7 @@ void XLineManager::eline_set_creation_time(const char* host, time_t create_time)
|
||||
if (!strcasecmp(host,(*i)->hostmask))
|
||||
{
|
||||
(*i)->set_time = create_time;
|
||||
(*i)->expiry = create_time + (*i)->duration;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -477,6 +479,7 @@ void XLineManager::qline_set_creation_time(const char* nick, time_t create_time)
|
||||
if (!strcasecmp(nick,(*i)->nick))
|
||||
{
|
||||
(*i)->set_time = create_time;
|
||||
(*i)->expiry = create_time + (*i)->duration;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -498,6 +501,7 @@ void XLineManager::zline_set_creation_time(const char* ip, time_t create_time)
|
||||
if (!strcasecmp(ip,(*i)->ipaddr))
|
||||
{
|
||||
(*i)->set_time = create_time;
|
||||
(*i)->expiry = create_time + (*i)->duration;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user