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)
commitb7b3b703c651dd543f35685ef9c1987210e3e9e6
tree27e99f609a67c8e06a948ae2aa7db9583b25c900
parentda5c95e5c422e412ac5f606d6867021f79c9aa17
Fix DNR expiration and expiration-based DNR searches.

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.
src/chanserv.c