i will have this script is about partyline adjustable.
the setudef flag TOPICCHECK must with .chanset #chan +TOPICCHECK always on for the other setudef flags.
example:
bot deop the user and set -t
so must the flags :
TOPICCHECK and deop for this chan must set on.
if all settingsflags are on and the TOPICCHECK flag off the bot do nothing
can somebody help me please ?
thank you very much
Code: Select all
bind mode - * topic
setudef flag TOPICCHECK
setudef flag undotopicmode
setudef flag deop
setudef flag kick
proc topic {nick uhost hand chan mode victim} {
if {$mode == "+t"} {
if {[matchattr $hand b] || [matchattr $hand n]} {
return 0
} else {
if {[onchan $nick $chan]} {
pushmode $chan -t
pushmode $chan -o $nick
set kick "putkick $chan $nick"
utimer 5 $kick
}
}
return 0
}
}