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 

modif

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


Joined: 26 Dec 2005
Posts: 82

PostPosted: Sat Dec 31, 2005 3:01 pm    Post subject: modif Reply with quote

Hi

Code:
bind pub n|m !deop* deopclan
proc deopclan {n u h c t} {
   foreach n [chanlist $c] {
      if [string match -noc $t $n] {pushmode $c -o $n}
   }
}


what must I add for not deop the user with flags M N and the bot

thx


Last edited by pilouuu on Sat Dec 31, 2005 3:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
pilouuu
Halfop


Joined: 26 Dec 2005
Posts: 82

PostPosted: Sat Dec 31, 2005 3:17 pm    Post subject: Re: modif Reply with quote

stef007 wrote:
Hi

Code:
bind pub n|m !deop* deopclan
proc deopclan {n u h c t} {
   foreach n [chanlist $c] {
      if [string match -noc $t $n] {pushmode $c -o $n}
   }
}


what must I add for not deop the user with flags M N and the bot

thx


And possible change trigger ! by $ ?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Dec 31, 2005 5:37 pm    Post subject: Reply with quote

withing the [foreach] loop:
Code:

if {[isbotnick $n] || [matchattr [nick2hand $n] mn]} continue

and read tcl-commands.doc
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Dec 31, 2005 11:01 pm    Post subject: Re: modif Reply with quote

stef007 wrote:
And possible change trigger ! by $ ?

Isn't that obvious?

Edit: Incase you're wondering how to skip $ then use \$.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Mon Jan 02, 2006 9:53 am    Post subject: Reply with quote

Code:
bind pub n|m {$}deop* deopclan

i'm not completely sure this would work, i useally use something like this

Code:
set trigger "$"
bind PUB -|- ${trigger}deop* deopclan


or

Code:
bind pub n|m \$deop* deopclan


like Sir_Fz said
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Jan 02, 2006 11:18 am    Post subject: Reply with quote

or even
Code:
bind pub n|m {$deop*} deopclan

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
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