[IRCServices Coding] Weird stuff with delnick()
Georges Berscheid
georges at berscheid.lu
Thu Sep 26 10:59:32 PDT 2002
Hi,
I used delnick() in one of my modules and I saw that it checks whether
ngi->nicks_count == 0, and if it's the case, removes the whole
nickgroupinfo.
Although, I called delnick() with the only nick in a group, but the
reference to the according ngi remained valid and ngi->mainnick was set to
65536 (0-1 in unsigned short).
Isn't there a ngi->nicks_count-- missing somewhere in
modules/nickserv/util.c:delnick() ?
Georges