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 29 matches

by Solarin
Fri Jul 08, 2005 5:48 pm
Forum: Archive
Topic: using list in a foreach command
Replies: 23
Views: 8203

Thanks for the help guys. :)
by Solarin
Fri Jul 01, 2005 5:05 pm
Forum: Archive
Topic: using list in a foreach command
Replies: 23
Views: 8203

what's the advantage of doing it that way?
by Solarin
Thu Jun 23, 2005 1:36 am
Forum: Archive
Topic: using list in a foreach command
Replies: 23
Views: 8203

Ok I did some testing and this is what I found with the following code: set cv_bannednicks {[xxx] [fastshit]-} ... set nick "[lindex [split $args " "] 6]" set cv_host($nick) "[lindex [split $args " "] 8]" foreach s $cv_bannednicks { if {[string match -nocase *...
by Solarin
Wed Jun 08, 2005 8:10 pm
Forum: Archive
Topic: using list in a foreach command
Replies: 23
Views: 8203

Hmmm... well you are correct on the break; command. I did not have that in there. Thanks for that. I had an oversight there. However it is still 8 rather than 7. As for the nick problem, it definitely has to do with string matching on an element of $cv_bannednicks. What would you suggest from here? ...
by Solarin
Wed Jun 08, 2005 5:20 pm
Forum: Archive
Topic: using list in a foreach command
Replies: 23
Views: 8203

Ok... this is really starting to bother me. Why don't my comparisons work correctly? set cv_bannedversions { "irc-ord" "http://www.ircap.com" "rbot" "jrbot" "http://iroffer.org/" "xen0" "sdbot" "xdcc catcher basic" "...
by Solarin
Wed Jun 08, 2005 5:05 pm
Forum: Archive
Topic: bot sets mode +e in channel inconsistently
Replies: 3
Views: 4003

Nice Yoohoo....

I managed to do a .chanset #channel -userexempts
and a .chanset #channel -dynamicexempts
prior to your post.

I think this will resolve the issue too but since you mentioned it Yoohoo, I will do the .set as well to be sure.
by Solarin
Wed Jun 01, 2005 7:31 pm
Forum: Archive
Topic: using list in a foreach command
Replies: 23
Views: 8203

That worked great. Now if the bannednicks thing worked well with special nicks, I'd be set.
by Solarin
Wed Jun 01, 2005 4:20 pm
Forum: Archive
Topic: using list in a foreach command
Replies: 23
Views: 8203

They are incremented counters... set percent 0 set tcl_precision 2 set percent [expr $cv_banned / $cv_count * 100.00] putserv "PRIVMSG $chan :Banned $cv_banned hosts out of $cv_count clients ($percent%). That snippet is showing the following text in channel: Banned 40 hosts out of 457 clients (...
by Solarin
Wed Jun 01, 2005 3:36 pm
Forum: Archive
Topic: using list in a foreach command
Replies: 23
Views: 8203

Right.. well this may shock some of you then: set cv_bannednicks {[xxx]} . . . set cv_bannednicks [split $cv_bannednicks \n] . . . set nick "[join [lindex [split $args " "] 6]]" foreach s $cv_bannednicks { if {[string match -nocase *$s* $nick]} { . . . } } the nick SeXy_BeBuLs_16...
by Solarin
Wed Jun 01, 2005 12:43 am
Forum: Archive
Topic: bot sets mode +e in channel inconsistently
Replies: 3
Views: 4003

bot sets mode +e in channel inconsistently

Can anyone tell me why the bot will join a channel and sometimes set channel mode +e? It is very inconsistent and there is no mention of mode e in the channel settings I can assure you. This happens once in a blue moon. I've had other eggys with almost identical configs but this never happened with ...
by Solarin
Thu May 26, 2005 4:09 pm
Forum: Archive
Topic: using list in a foreach command
Replies: 23
Views: 8203

Nobody can shed light on my other questions? Please remember I'm dealing with nicks here. I could have nicks with special characters like { or [. Also note that I used the split on \n and also used the list foreach... this resulted in a false comparison when it should not have in many instances. I t...
by Solarin
Wed May 25, 2005 8:08 pm
Forum: Archive
Topic: using list in a foreach command
Replies: 23
Views: 8203

set nick "[lindex [split $args " "] 6]" is how I'm setting nick btw ;) Not your ordinary proc I can assure you. Thanks for the advice on splitting on \n. I will give that a whirl. Note that it should be: set cv_bannednicks [split $cv_bannednicks \n] In regards to: list foreach s...
by Solarin
Wed May 25, 2005 2:29 pm
Forum: Archive
Topic: using list in a foreach command
Replies: 23
Views: 8203

using list in a foreach command

Take the following code excerpts as an example: set cv_bannednicks { [xxx] } . . . foreach s $cv_bannednicks { if {[lsearch -glob [string tolower $nick] "*$s*"] != -1} { . . . shouldn't I be using: list foreach s $cv_bannednicks { ??? using: foreach s [list $cv_bannednicks] { does not work...
by Solarin
Tue Sep 16, 2003 10:35 am
Forum: Archive
Topic: Problem with Userfile sharing across a botnet of four bots
Replies: 8
Views: 1701

I appreciate it. It's all good now.

:D
by Solarin
Mon Sep 15, 2003 4:13 am
Forum: Archive
Topic: Problem with Userfile sharing across a botnet of four bots
Replies: 8
Views: 1701

I get nothing over the console and scripts are not relevant here. They are only running one script and it would have no effect.