if (!mNode)
return;
- for (n=0; n<pf_used; n++)
- pf_list[n](mNode, reason);
-
/* remove modeNode from channel and user */
modeList_remove(&channel->members, mNode);
modeList_remove(&user->channels, mNode);
+
+ /* make callbacks */
+ for (n=0; n<pf_used; n++)
+ pf_list[n](mNode, reason);
+
+ /* free memory */
free(mNode);
if (!deleting && !channel->members.used && !channel->locks && !(channel->modes & MODE_REGISTERED))