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}
}
}thx
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}
}
}And possible change trigger ! by $ ?stef007 wrote:Hi
what must I add for not deop the user with flags M N and the botCode: 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} } }
thx
Code: Select all
if {[isbotnick $n] || [matchattr [nick2hand $n] mn]} continue
Code: Select all
tag when posting logs, codeIsn't that obvious?stef007 wrote:And possible change trigger ! by $ ?
Code: Select all
bind pub n|m {$}deop* deopclanCode: Select all
set trigger "$"
bind PUB -|- ${trigger}deop* deopclanCode: Select all
bind pub n|m \$deop* deopclanCode: Select all
bind pub n|m {$deop*} deopclan