This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 9 matches

by Doos
Tue May 16, 2006 11:31 am
Forum: Scripting Help
Topic: Logging number of users to file
Replies: 1
Views: 3324

Logging number of users to file

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...
by Doos
Mon Jul 11, 2005 6:42 am
Forum: Archive
Topic: memory issue
Replies: 12
Views: 5334

Ah now I see, it's a quotation without interpolation.
by Doos
Sun Jul 10, 2005 11:59 am
Forum: Archive
Topic: memory issue
Replies: 12
Views: 5334

Yes that part I understand (I experimented with $kick-nick) , I was actually thinking of what ${kick-nick} does .. is that some sort of reference?
by Doos
Sun Jul 10, 2005 11:19 am
Forum: Archive
Topic: memory issue
Replies: 12
Views: 5334

Thanks, that did the trick.

Care to explain a bit what happened?
by Doos
Sun Jul 10, 2005 6:50 am
Forum: Archive
Topic: memory issue
Replies: 12
Views: 5334

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 ...
by Doos
Sun Jul 10, 2005 6:32 am
Forum: Archive
Topic: memory issue
Replies: 12
Views: 5334

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 - ...
by Doos
Fri Jul 08, 2005 3:37 pm
Forum: Archive
Topic: memory issue
Replies: 12
Views: 5334

Interesting demond,

I'm going to study that.
Just a short question before I dive into Tcl, if I replace ?0* with 01**** .. would that update every minute?

Oh nevermind, I should just get of my lazy ass and read the fabulous manual.

Thanks :)
by Doos
Fri Jul 08, 2005 7:12 am
Forum: Archive
Topic: memory issue
Replies: 12
Views: 5334

memory issue

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...
by Doos
Thu Jul 07, 2005 11:35 am
Forum: Archive
Topic: whosonline script (update on quit)
Replies: 4
Views: 2210

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...