| View previous topic :: View next topic |
| Author |
Message |
pilouuu Halfop
Joined: 26 Dec 2005 Posts: 82
|
Posted: Sat Dec 31, 2005 3:01 pm Post subject: modif |
|
|
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 |
|
 |
pilouuu Halfop
Joined: 26 Dec 2005 Posts: 82
|
Posted: Sat Dec 31, 2005 3:17 pm Post subject: Re: modif |
|
|
| 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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Dec 31, 2005 5:37 pm Post subject: |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Dec 31, 2005 11:01 pm Post subject: Re: modif |
|
|
| 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 |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Mon Jan 02, 2006 9:53 am Post subject: |
|
|
| 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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
|