If $nick isn't being removed from the list, there are only a few possibilities:Hi. This is a smal part of a proc from where I can't find where is the error. It seems that he dosen't remove $nick from the list and I can't see why is doing so. Can someone please point me the mistake? Thanks.
1. The proc isn't even being called to remove that nick
2. It is being called, but removing it incorrectly
3. The nick is added more than once
Those are the only 3 possibilities, right? So first, add debugging statements to see which one of them it is. The first one is easy to find out, use putlog at the top of the proc to say "Hello I am being called to remove $nick". The second one is also easy, just use putlog to display the list at the top and then at the bottom, and you can verify that the nick is being removed. The third one is easy as well, add putlogs to wherever you add nicks to the list, saying "Hello I am adding $nick to the list".
This is common debugging strategy: find all places where the error might be occurring, and inspect the data at those places.