Heu, pourquoi tu te compliques la vie ?
En utilisant newchanban (newchanban <channel> <ban> <creator> <comment> [lifetime] [options]), tu ne réinvente pas la roue.
CrazyCat a écrit :Heu, pourquoi tu te compliques la vie ?
En utilisant newchanban (newchanban <channel> <ban> <creator> <comment> [lifetime] [options]), tu ne réinvente pas la roue.
Y'a t'il une option pour faire que sorte que le ban s'applique exemple sur *!*@*.domaine.tld
et non sur nick!*@*
bind pub - !tbm pub:!tbm
proc pub:!tbm {nick uhost hand chan text}{if{!([isop $nick$chan] || [ishalfop $nick$chan])}returnif{![onchan [set target [lindex[set splitText [split$text]]0]]$chan] || ![string is digit [set duration [lindex$splitText1]]] || $duration eq ""}returnforeach mode {q a o h v}{ pushmode $chan -$mode$target}
newchanban $chan ~q:*!*@[lindex[split[getchanhost $target] @]1]$nick osef $duration sticky
putquick "PRIVMSG #erep.moderation :\002$nick\002 a décidé de retiré la parole a \002$target\002"return1}
putlog "\002TBM By Artix & Marc\002 v4.0.5 - Chargé"
Voila la nouvelle version,
Encore un soucis... Il affiche le message sur #erep.moderation mais il ne ban pas sur le canal comme demander !?
Que faire ? :/[/align]