Caesar, Indeed there are a couple of suggestions:
1. there are three questions asked on the previous topic, which you left unanswered.
2. When changing the topic, open a new topic on the board.
Suggestions for your "new script":
3. The functionality you want seems close to what someone else (or your alter ego) wanted:
http://forum.egghelp.org/viewtopic.php? ... &forum=2&8
4. I've implement the above using your method of bookkeeping a list, and it is doable. But using a list, requires extensive bookkeeping.
Suppose a stray of 100 clones joins and parts your channel 20 times. Your variable $users will grow. The bookkeeping you need to do is on JOIN/PART/SIGN and maybe SPLT/REJN.
My suggestion is not to do it this way.
Check out:
http://www.geocities.com/eggheadtcl/angelina.tcl.txt
This script can be easily modified to bind to a MSG trigger. The putdcc can be replaced by puthelp NOTICEs.
Anyway, if you continue it your own way...
5. In your script you mix list and string.
For example you use: set users "$users $nick". If you want to keep a list use [lappend].
Suggestion: don't mix lists and strings. It will give you headegg.
6. Apart from testing for [onchan], check that the bot is op [botisop]. It doesn't make sense to serve +v if the bot isn't op.
7. If your bot is on more than 1 channel, you need to keep track of users on a channel by channel basis.
8. If you want to remove the first item from a list use the [lrange $list 1 end] or simply cut the first item from the list [lreplace $list 0 0]
9. Below your putserv, there is a "next_chg". It seems you must omit this one. Otherwise "next_chg" is called twice upon one .next command.
10. O yeah, for the bookkeeping part: NICK changes must also be tracked...
11. People with +o don't need to be voiced. Unless you are generous.
12. And more bookkeeping... people getting KICKed should also be tracked...
There is probably more, and there are prolly some errors in my message... but too big headegg now... (or is it a troll anyway?
<font size=-1>[ This Message was edited by: egghead on 2002-02-07 13:05 ]</font>