31/01/2017, 21:49
(Modification du message : 31/01/2017, 21:50 par Alucard`68.)
Merci CrazyCat parfaitement fonctionnel
J'ai voulu refaire la même chose pour le mode "q" mais non fonctionnel par contre
Donc ma question puis-je faire la même chose pour le mode "q" ?
Merci d'avance.
Bye.
J'ai voulu refaire la même chose pour le mode "q" mais non fonctionnel par contre
tcl
set chanlog "#Services"
bind mode - * reop
bind mode - * reowner
proc reop {nick uhost hand chan mode {target ""}} {
global botnick chanlog
if { [string tolower $target] != [string tolower $botnick] } {
return 0
}
if {$mode == "-o"} {
putquick "mode $chan +o $botnick"
putquick "PRIVMSG $chan :\00312Merci de ne pas m'enlever de mon statut \0037$nick \00312!!"
putquick "PRIVMSG $chanlog :\0034ReOp \00312sur \0036$chan \00312suite au deop de \0037$nick"
}
}
proc reowner {nick uhost hand chan mode {target ""}} {
global botnick chanlog
if { [string tolower $target] != [string tolower $botnick] } {
return 0
}
if {$mode == "-q"} {
putquick "mode $chan +q $botnick"
putquick "PRIVMSG $chan :\00312Merci de ne pas m'enlever de mon statut \0037$nick \00312!!"
putquick "PRIVMSG $chanlog :\0034Owner \00312sur \0036$chan \00312suite au deop de \0037$nick"
}
}
Donc ma question puis-je faire la même chose pour le mode "q" ?
Merci d'avance.
Bye.