[srvx-bugs] [ srvx-Bugs-830558 ] partial mod snoop configuration loss on rehash
Brought to you by:
entrope
From: SourceForge.net <no...@so...> - 2003-10-26 16:39:27
|
Bugs item #830558, was opened at 2003-10-26 16:39 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403001&aid=830558&group_id=31654 Category: Miscellaneous Group: 1.2 Status: Open Resolution: None Priority: 5 Submitted By: Simon Arlott (byte-) Assigned to: Nobody/Anonymous (nobody) Summary: partial mod snoop configuration loss on rehash Initial Comment: when mod-snoop is used, snoop_conf_read() is called and most configuration options are loaded after srvx has connected, snoop_finalize() is called to read get the handle of the bot to use to send messages when srvx is rehashed, snoop_conf_read() is called - which resets all the configuration data and re-reads them - except for the bot handle, which is then null causing srvx to die on the next event that gets reported by mod-snoop solution (not perfect): call snoop_finalize() at the end of snoop_conf_read(), the bot won't exist when this is first run so it won't do anything, but on rehashes it will restore the reference to the bot's handle ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403001&aid=830558&group_id=31654 |