[Résolu] rajout d'une exception sur une commande de kick
#12
Salut,

D'accord sa marche encore merci Smile

Edit : oui aliasangelus un tcl du genre !k !kb

dans se style la
tcl
bind pub - !kr kickraison
bind pub - !kflood kickflood
 
proc kickraison { nick host hand channel text } {
  global vhostmodo1 kickraison
  set args [split $text]
  set victim [lindex $args 0]
  set reason [join [lrange $args 1 end]]
  foreach vhost $vhostmodo1 {
    if [string match -nocase $vhost $host] {
      putserv "PRIVMSG $::cs kick $channel $victim $reason"
      putserv "PRIVMSG $::log :\0034$victim \00312a été kick de \0034$channel \00312par \0034$nick \00312pour la raison :\0037 $reason"
      }
   }
}
 
proc kickflood { nick host hand channel arg } {
  global vhostmodo1 kickflood
  foreach vhost $vhostmodo1 {
    if [string match -nocase $vhost $host] {
      putserv "PRIVMSG $::cs kick $channel $arg \00312Le flood est interdit sur les salons officiels !"
      putserv "PRIVMSG $::log :\0034$arg \00312a été kick de \0034$channel \00312par \0034$nick \00312pour flood."
      }
   }
}


Voila encore merci de ton aide.
Répondre Avertir


Messages dans ce sujet
RE: rajout d'une exception sur une commande de kick - par Alucard`68 - 30/01/2017, 11:19

Atteindre :


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