From 351e58b5f7ccbb48179663e85adbbf3934986c90 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 19 Sep 2006 20:26:48 +0000 Subject: Update expiries when we update the set time git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5306 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/xline.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/xline.cpp') 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; } } -- cgit v1.2.3