I was thinking to use "foreach" on the nick/part/kick/quit event to check if that nick who do that is on that variable ($users), and if is in there to remove it from the list, to split that $users again and remove it. On each event (nick/part/kick/quit) to run a proces to see who is not on channel. I'll add a if with is a user or is him.
Notice that my .next is a pub command not a party line command. For this command I was thinking to use: if he has @ in there and if that nick in on the channel to give him voice, else do that check until a nick is on channel. Any other sugestion?
PS: Do you know a link where I can read about splits and lrange and the rest of this? This will be nice and very helpful for me. Thx!
... and Petersen gave you a link for your own question:
PS: Do you know a link where I can read about splits and lrange and the rest of this? This will be nice and very helpful for me.
As a last message on this topic, the angelina.tcl is now updated to include also PUB commands. If you have some 5 spare minutes while scripting your heavy bookkeeping caesar.tcl, load the angelina.tcl and test it
<font size=-1>[ This Message was edited by: egghead on 2002-02-10 16:10 ]</font>
Well, I looked at that angelina.tc file and.. is stil not the thing I'm looking for to make. Well, Wen a nick joins a channel adds to that users variable and when I say .next (pub or dcc) to give voice to the first, then erase that nick from the users variable. When I say .next to repeat the proces like the previous. On a nick/kick/part/quit to do that check if the nick is in users variable to remove it, and if is a nick change to add the new nick at the end or replace in the users variable the old nick with the new one. I don't have anought time to make my tcl right now cos I got some exams and.. not so much time to think at that tcl. After I finish my sesions (faculty one) I'll make this like I want. I'll wayt for any other sugestions related about this. Thx again!