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.
Help for those learning Tcl or writing their own scripts.
neoclust
Halfop
Posts: 55 Joined: Fri Aug 14, 2009 11:03 am
Post
by neoclust » Tue Sep 21, 2010 6:51 am
Hello I would like the script to return 0 if a specific nick is @ in channel knowing that frequently changes its last character in this form
"Eggnick?"
I tried this
Code: Select all
set eggyfriend "*Eggnick*"
if {[isop $eggyfriend $chan]} { return 0}
but it does not work when Eggynick put a nick Eggynick0 or 1 at the end, of the code does not return u have an idea plz thanks
doggo
Halfop
Posts: 97 Joined: Tue Jan 05, 2010 7:53 am
Contact:
Post
by doggo » Tue Sep 21, 2010 9:03 am
Code: Select all
set eggyfriend [regexp -all -nocase -- {Eggnick*} data]
if {[isop $eggyfriend $chan]} {
return 0
}
untested
neoclust
Halfop
Posts: 55 Joined: Fri Aug 14, 2009 11:03 am
Post
by neoclust » Tue Sep 21, 2010 9:21 am
Thanks man i test
neoclust
Halfop
Posts: 55 Joined: Fri Aug 14, 2009 11:03 am
Post
by neoclust » Tue Sep 21, 2010 10:34 am
The code does not react after
neoclust
Halfop
Posts: 55 Joined: Fri Aug 14, 2009 11:03 am
Post
by neoclust » Tue Sep 21, 2010 11:04 am
it is possible to see "a handle as owner" if having @ access canal to avoid regexp?
neoclust
Halfop
Posts: 55 Joined: Fri Aug 14, 2009 11:03 am
Post
by neoclust » Tue Sep 21, 2010 11:23 am
I had to use this command it looks to work well
Code: Select all
foreach bot [chanlist $chan b] {if {[isop $bot $chan]} {putlog "$bot true" ; return 0}}