From: Perry Lorier Date: Sat, 1 Apr 2000 05:22:33 +0000 (+0000) Subject: Author: Isomer X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=f36a41c5747b60517095679dec0c166ae470b3b9;p=ircu2.10.12-pk.git Author: Isomer Log message: * Fixes ban timestamps being based on localtime not TS time. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@122 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index 8281e46..a80b82f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-03-30 Perry Lorier + * ircd/channel.c: Bans had CurrentTime in their when field instead + of TStime() + 2000-03-31 Thomas Helvey * ircd/numnicks.c (SetXYYCapacity): fix for extended numerics. @@ -263,7 +267,7 @@ # # ChangeLog for ircu2.10.11 # -# $Id: ChangeLog,v 1.51 2000-04-01 05:09:14 bleep Exp $ +# $Id: ChangeLog,v 1.52 2000-04-01 05:22:33 isomer Exp $ # # Insert new changes at beginning of the change list. # diff --git a/ircd/channel.c b/ircd/channel.c index 05fc2d9..819848b 100644 --- a/ircd/channel.c +++ b/ircd/channel.c @@ -381,7 +381,7 @@ int add_banid(struct Client *cptr, struct Channel *chptr, char *banid, assert(0 != ban->value.ban.who); strcpy(ban->value.ban.who, cptr->name); - ban->value.ban.when = CurrentTime; + ban->value.ban.when = TStime(); ban->flags = CHFL_BAN; /* This bit is never used I think... */ if ((ip_start = strrchr(banid, '@')) && check_if_ipmask(ip_start + 1)) ban->flags |= CHFL_BAN_IPMASK; @@ -3386,7 +3386,7 @@ mode_parse_ban(struct ParseState *state, int *flag_p) DupString(newban->value.ban.banstr, t_str); newban->value.ban.who = state->sptr->name; - newban->value.ban.when = CurrentTime; + newban->value.ban.when = TStime(); newban->flags = CHFL_BAN | MODE_ADD;