13/11/2012, 09:58
En faite l'idée serait de le faire sur setudef.
Donc ce qui donnerais :
Plus ou moins si je ne me trompe pas.. Je testerai dans la journée voir mais je pense que sa serait l'idée
Donc ce qui donnerais :
TCL
namespace eval ::niuban {
setudef flag NB
bind MODE - "* +b" [namespace current]::unban_niubot
proc unban_niubot { nick uhost hand chan mc target } {
variable niubotchan
if {[isbotnick $nick]} { return 0 }
if {[isban $target $chan]} { return 0 }
if {[channel get $chan NB]} {
if {[string match -nocase niubot?? $nick]} {
putquick "PRIVMSG $niubotchan :unban $target $chan"
} else {
putquick "mode $chan -ob $nick $target"
puthelp "privmsg $niubotchan :\037\0034Seuls les bans via $::botnick sont autorisés !\037\0034"
}
}
}
}
Plus ou moins si je ne me trompe pas.. Je testerai dans la journée voir mais je pense que sa serait l'idée