Unban Niubot..
#5
En faite l'idée serait de le faire sur setudef.
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
Répondre Avertir


Messages dans ce sujet
Unban Niubot.. - par aliasangelius - 11/11/2012, 18:35
RE: Unban Niubot.. - par CrazyCat - 12/11/2012, 10:16
RE: Unban Niubot.. - par aliasangelius - 12/11/2012, 10:21
RE: Unban Niubot.. - par CrazyCat - 12/11/2012, 18:20
RE: Unban Niubot.. - par aliasangelius - 13/11/2012, 09:58

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)
Tchat 100% gratuit -Discutez en toute liberté