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

Sujets apparemment similaires…
Sujet Auteur Réponses Affichages Dernier message
  [Résolu] problème de timer sur un unban Alucard`68 6 1,829 18/04/2017, 15:25
Dernier message: Alucard`68
  Création d'un script d'unban Demonis 9 3,969 17/03/2013, 22:18
Dernier message: Demonis
  Eggdrop, qui unban automatiquement... IluZi0n 4 3,183 16/04/2009, 14:52
Dernier message: David
  unban apres x temps pepino 0 2,963 16/08/2008, 22:00
Dernier message: pepino

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)