#
# ChangeLog for Undernet ircu Servers
#
-# $Id: ChangeLog,v 1.5 1999-12-11 08:54:13 bleep Exp $
+# $Id: ChangeLog,v 1.6 2000-01-01 00:00:32 bleep Exp $
#
# Please insert new entries on the top of the list, a one or two line comment
# is sufficient. Please include your name on the entries we know who to blame.
# Please keep lines < 80 chars.
#-------------------------------------------------------------------------------
+* s_misc.c (date): add Runs Y2K patch --Bleep
* hash.c (hChangeClient): bug fix. If the client pointer matched the first
pointer in the bucket, the change was ignored (returned 0), leaving stale
values in the hash table, eventually causing the server to die for mysterious
gm = &gmbuf;
lt = localtime(&clock);
- if (lt->tm_yday == gm->tm_yday)
- minswest = (gm->tm_hour - lt->tm_hour) * 60 + (gm->tm_min - lt->tm_min);
- else if (lt->tm_yday > gm->tm_yday)
- minswest = (gm->tm_hour - (lt->tm_hour + 24)) * 60;
- else
- minswest = ((gm->tm_hour + 24) - lt->tm_hour) * 60;
+ minswest = (gm->tm_hour - lt->tm_hour) * 60 + (gm->tm_min - lt->tm_min);
+ if (lt->tm_yday != gm->tm_yday)
+ {
+ if ((lt->tm_yday > gm->tm_yday && lt->tm_year == gm->tm_year) ||
+ (lt->tm_yday < gm->tm_yday && lt->tm_year != gm->tm_year))
+ minswest -= 24 * 60;
+ else
+ minswest += 24 * 60;
+ }
plus = (minswest > 0) ? '-' : '+';
if (minswest < 0)