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.

modif

Help for those learning Tcl or writing their own scripts.
Post Reply
p
pilouuu
Halfop
Posts: 82
Joined: Mon Dec 26, 2005 8:03 pm

modif

Post by pilouuu »

Hi

Code: Select all

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.
p
pilouuu
Halfop
Posts: 82
Joined: Mon Dec 26, 2005 8:03 pm

Re: modif

Post by pilouuu »

stef007 wrote:Hi

Code: Select all

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 $ ?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

withing the [foreach] loop:

Code: Select all

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: Select all

 tag when posting logs, code
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Re: modif

Post by Sir_Fz »

stef007 wrote:And possible change trigger ! by $ ?
Isn't that obvious?

Edit: Incase you're wondering how to skip $ then use \$.
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

bind pub n|m {$}deop* deopclan
i'm not completely sure this would work, i useally use something like this

Code: Select all

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

Code: Select all

bind pub n|m \$deop* deopclan
like Sir_Fz said
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

or even

Code: Select all

bind pub n|m {$deop*} deopclan
Post Reply