diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-19 20:26:48 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-19 20:26:48 +0000 |
commit | 351e58b5f7ccbb48179663e85adbbf3934986c90 (patch) | |
tree | 7d59681ade478c7f171728ece39f6e63a05a2229 | |
parent | 8ed63fe681c5dbd1f3993b8b8e3ef7a7e9ef0fc8 (diff) |
Update expiries when we update the set time
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5306 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/xline.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index 24a1fccd0..84c465927 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -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; } } |