Aide/Explications pour créer une commande
#20
Bon, vite fait, sûrement pas fonctionnel mais la logique y est:
tcl
bind pub n|n "!addsajoin" sj:adduser
proc sj:adduser {nick uhost hand chan args} {
    if {![matchattr $hand n]} { return 0 }
    if {$args == ''} { return 0 }
    set victim [lindex [split $args] 0]
    set chans [lrange [split $args] 1 end]
    if {[llength $chans] == 0} { return 0 }
    set victhand [nick2hand $victim]
    if {![adduser $victhand $victim![getchanhost $victim $chan]} { return 0 }
    chattr $victhand +S
    setuser $victhand XTRA [join $chans]
}
 
bind join - "#control *" sj:invite
proc sj:invite {nick uhost hand chan} {
    if {![matchattr $hand S]} { return 0 }
    foreach c [split [getuser $hand XTRA]] {
        putserv "SAJOIN $nick $c"
    }
}



Petit PS: Heretoc, pourrais-tu s'il te plait faire un effort d'écriture ? Particulièrement en ce qui concerne les "c'est" et "ça". Merci
Répondre


Messages dans ce sujet
Aide/Explications pour créer une commande - par heretoc - 04/02/2009, 20:30
RE: Aide/Explications pour créer une commande - par heretoc - 04/02/2009, 23:03
RE: Aide/Explications pour créer une commande - par heretoc - 05/02/2009, 10:26
RE: Aide/Explications pour créer une commande - par heretoc - 05/02/2009, 13:46
RE: Aide/Explications pour créer une commande - par heretoc - 09/02/2009, 22:25
RE: Aide/Explications pour créer une commande - par heretoc - 05/02/2009, 20:24
RE: Aide/Explications pour créer une commande - par heretoc - 11/02/2009, 22:29
RE: Aide/Explications pour créer une commande - par heretoc - 23/02/2009, 15:40
RE: Aide/Explications pour créer une commande - par heretoc - 23/02/2009, 21:22
RE: Aide/Explications pour créer une commande - par heretoc - 24/02/2009, 01:32
RE: Aide/Explications pour créer une commande - par heretoc - 24/02/2009, 15:38
RE: Aide/Explications pour créer une commande - par CrazyCat - 24/02/2009, 16:07
RE: Aide/Explications pour créer une commande - par heretoc - 24/02/2009, 17:46

Atteindre :


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