Avoid adding expire_channels() to the timeq on !expire.
authorMichael Poole <mdpoole@troilus.org>
Sun, 30 Oct 2011 22:22:21 +0000 (18:22 -0400)
committerMichael Poole <mdpoole@troilus.org>
Sun, 30 Oct 2011 22:22:21 +0000 (18:22 -0400)
commit0a502ddd052402696675851a282f81052dc59b87
treedbd445c553bc4e642fad24ab27ea774ed46a0ee9
parent3c70e89e7cc738f30cfbd1a5530507af41fc9ed6
Avoid adding expire_channels() to the timeq on !expire.

Fixes SourceForge bug #3000577.

src/chanserv.c (expire_channels): Only (re-)add this function to timeq
    if the data argument is NULL.
  (cmd_expire): Pass a non-NULL pointer when calling expire_channels().
src/chanserv.c