[IRCServices Coding] Timeouts

Georges Berscheid georges at berscheid.lu
Thu Jan 23 01:05:27 PST 2003


Hi,

while talking about writing new modules, what was the exact reason for
not allowing coders to loop through the list of timeouts (since *prev
and *next are private to the timeout.c functions) ?
Since timeouts already have ->data, they could also have a ->type, which
whould allow to find a specific timeout in the list using data and type.
I now implemented my own list adding the type property to a timeout (as
in modules/nickserv/collide.c), but it could have been much easier using
predefined timeout-browse-functions :)

Georges