Hi all, I created the following file (with some stolen code). The purpose is to count the number of users in a channel and write that to a file. It does update the number of people in chat when they join nicely, but not when someone leaves the channel. Could someone comment on it as I'm very poor at...
Maybe I should explain how I think when I see that code (I'm new to Tcl). if {[set idx [lsearch -exact $::nicks $nick]] != -1} { ##here you test if the nick is in the $::nick list (an array I presume) and set the result (the nick) in $idx set ::nicks [lreplace $::nicks $idx $idx] ##here you replace ...
Thanks all for the help. Most of it works now (except the bind kick). I added a nickchange detector which actually seems to work, don't ask me how. When the following kick proc gets executed, it deletes the first entry in the list (or the one who does the kick). Anyone has a suggestion? bind kick - ...
Hi all, I'm trying to write a small script that reads the nicks in the channel to file. Which then later will be used on a webpage. My problem is that when someone does a /part, his/her nick stays in the list. I'm probably missing the obvious in my test script, but could someone give me some pointer...
I added: bind kick - * cc_sign bind splt - * cc_sign to the above script. It does create a nice little file with users when they join, just doesn't update it on /part /quit. I'm totally new to tcl (perl background) and the tcl/eggdrop tutorial I find, well lets say hard to read. Could the OP tell me...