Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Fri, 20 Jul 2007 23:32:19 +0000 (23:32 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Fri, 20 Jul 2007 23:32:19 +0000 (23:32 +0000)
commitab92e415c2830825e90398a776313fb0a7ab1728
tree8ee8b036e0993e31eee5773c4c7209a00a9c43fc
parent30cd7d8a8c1b9efdbf25977174e733754877d496
Author: Kev <klmitch@mit.edu>
Log message:

* ircd/m_gline.c: create abs_expire() macro to convert an expire
timestamp from the network into an absolute time, if needed;
rename expire_off to expire globally, since it now represents an
absolute expiration time; use expire - CurrentTime in gline
forwarding statements; in ms_gline(), use abs_expire() to convert
network expiration timestamp into absolute timestamp; in
mo_gline(), add CurrentTime to oper-provided expiration offset to
convert to absolute timestamp

* ircd/gline.c: assume expire and lifetime arguments to
gline_add() and gline_modify() are already absolute timestamps;
send lifetime parameter as an absolute timestamp, but leave expire
timestamp as relative as first part of a 2-phase update

Tested and seems to have the desired effect.  Note that the treatment of
lifetime is incompatible with the prior version of this G-line patch.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1819 c9e4aea6-c8fd-4c43-8297-357d70d61c8c
ChangeLog
aclocal.m4
configure
ircd/gline.c
ircd/m_gline.c