Fix DNR expiration and expiration-based DNR searches.
authorMichael Poole <mdpoole@troilus.org>
Thu, 13 Dec 2007 04:07:52 +0000 (23:07 -0500)
committerMichael Poole <mdpoole@troilus.org>
Thu, 13 Dec 2007 04:07:52 +0000 (23:07 -0500)
src/chanserv.c (expire_dnrs): Use the usual trick for iterating over a dict
    while we might want to delete elements from it.
  (dnr_search_matches): Simplify the min_expires test.  If max_expires is
    set, fail if the DNR never expires or it expires later.
  (dnr_search_create): Initialize max_expires to 0, not INT_MAX.


No differences found