egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

if isop

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
neoclust
Halfop


Joined: 14 Aug 2009
Posts: 55

PostPosted: Tue Sep 21, 2010 6:51 am    Post subject: if isop Reply with quote

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
View user's profile Send private message
doggo
Halfop


Joined: 05 Jan 2010
Posts: 97

PostPosted: Tue Sep 21, 2010 9:03 am    Post subject: Reply with quote

Code:
set eggyfriend [regexp -all -nocase -- {Eggnick*} data]
if {[isop $eggyfriend $chan]} {
return 0
}


untested
_________________
NON geeky!! http://gotcode4u.com/
Back to top
View user's profile Send private message Visit poster's website
neoclust
Halfop


Joined: 14 Aug 2009
Posts: 55

PostPosted: Tue Sep 21, 2010 9:21 am    Post subject: Reply with quote

Thanks man i test
Back to top
View user's profile Send private message
neoclust
Halfop


Joined: 14 Aug 2009
Posts: 55

PostPosted: Tue Sep 21, 2010 10:34 am    Post subject: Reply with quote

The code does not react after
Back to top
View user's profile Send private message
neoclust
Halfop


Joined: 14 Aug 2009
Posts: 55

PostPosted: Tue Sep 21, 2010 11:04 am    Post subject: Reply with quote

it is possible to see "a handle as owner" if having @ access canal to avoid regexp?
Back to top
View user's profile Send private message
neoclust
Halfop


Joined: 14 Aug 2009
Posts: 55

PostPosted: Tue Sep 21, 2010 11:23 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber