Mise en forme de code: pensez à utiliser les balises [ tcl ] et [ /tcl ] (sans les espaces bien sûr) autour de vos codes tcl afin d'avoir un meilleur rendu et une coloration syntaxique. x


timer ban
#1

tcl
bind pub - !tbm tbm
proc tbm {nick uhost handle chan args} {
   if {![isop $nick $chan] && ![ishalfop $nick $chan]} { putquick "NOTICE"; return 0}
   if {[lindex $args 0]!=""} {
      set vnick [lindex $args 0]
      set timeb [lindex $args 2]
      if {![onchan $vnick $chan]} { putquick "NOTICE"}
      set vhost [lindex [split [getchanhost $vnick $chan] "@"]]
      putquick "MODE $chan +b $vhost"
      putquick "mode $chan -v $vnick"
      timer $timeb [list eban $vhost]
      return
   } else {
      puthelp "NOTICE"
      return
   }
}


Je ne trouve pas le moyen de deban avec le timer apres le temps donner avec $timeb
?? :/


Messages In This Thread
timer ban - by Marc - 19/12/2009, 01:39
RE: timer ban - by Marc - 19/12/2009, 09:23
RE: timer ban - by CrazyCat - 19/12/2009, 22:38
RE: timer ban - by Marc - 20/12/2009, 07:21
RE: timer ban - by CrazyCat - 20/12/2009, 12:40
RE: timer ban - by Marc - 20/12/2009, 19:03
RE: timer ban - by CrazyCat - 20/12/2009, 23:01
RE: timer ban - by Marc - 21/12/2009, 07:56
RE: timer ban - by Marc - 21/12/2009, 08:55
RE: timer ban - by CrazyCat - 22/12/2009, 12:10

Possibly Related Threads…
Thread Author Replies Views Last Post
  timer KeeViiNou 1 1,240 20/08/2020, 18:19
Last Post: CrazyCat
  [Résolu] problème de timer sur un unban Alucard`68 6 3,820 18/04/2017, 15:25
Last Post: Alucard`68
  Timer TCL BlackNight 15 15,614 13/02/2010, 19:42
Last Post: DodY
  Timer en Tcl Meribre 4 5,020 17/12/2009, 17:53
Last Post: Meribre
  erreur dans un timer caline012 2 4,701 17/10/2008, 13:52
Last Post: caline012

Forum Jump:


Users browsing this thread: 1 Guest(s)