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.
Help for those learning Tcl or writing their own scripts.
-
pilouuu
- Halfop
- Posts: 82
- Joined: Mon Dec 26, 2005 8:03 pm
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.
-
pilouuu
- Halfop
- Posts: 82
- Joined: Mon Dec 26, 2005 8:03 pm
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 $ ?
-
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
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
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 \$.
-
metroid
- Owner
- Posts: 771
- Joined: Wed Jun 16, 2004 2:46 am
Post
by metroid »
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
like Sir_Fz said
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »