| View previous topic :: View next topic |
| Author |
Message |
neoclust Halfop
Joined: 14 Aug 2009 Posts: 55
|
Posted: Tue Sep 21, 2010 6:51 am Post subject: if isop |
|
|
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: |
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 |
|
| Back to top |
|
 |
doggo Halfop
Joined: 05 Jan 2010 Posts: 97
|
Posted: Tue Sep 21, 2010 9:03 am Post subject: |
|
|
| Code: | set eggyfriend [regexp -all -nocase -- {Eggnick*} data]
if {[isop $eggyfriend $chan]} {
return 0
} |
untested _________________ NON geeky!! http://gotcode4u.com/ |
|
| Back to top |
|
 |
neoclust Halfop
Joined: 14 Aug 2009 Posts: 55
|
Posted: Tue Sep 21, 2010 9:21 am Post subject: |
|
|
| Thanks man i test |
|
| Back to top |
|
 |
neoclust Halfop
Joined: 14 Aug 2009 Posts: 55
|
Posted: Tue Sep 21, 2010 10:34 am Post subject: |
|
|
| The code does not react after |
|
| Back to top |
|
 |
neoclust Halfop
Joined: 14 Aug 2009 Posts: 55
|
Posted: Tue Sep 21, 2010 11:04 am Post subject: |
|
|
| it is possible to see "a handle as owner" if having @ access canal to avoid regexp? |
|
| Back to top |
|
 |
neoclust Halfop
Joined: 14 Aug 2009 Posts: 55
|
Posted: Tue Sep 21, 2010 11:23 am Post subject: |
|
|
I had to use this command it looks to work well
| Code: | foreach bot [chanlist $chan b] {if {[isop $bot $chan]} {putlog "$bot true" ; return 0}}
|
|
|
| Back to top |
|
 |
|