action non déclarer.
#6
ouep j'ai donc fait :

TCL
proc fepo {nick action arg} {
        set arg [charfilter $arg]
        set fa [open "$basedir/$autorise(fichier)" a+]
        seek $fa 0
        while {![eof $fa]} {
             set get [gets $fa]
             if {[string equal [string tolower $get] [string tolower $nick]]==1} {
             }
        }
    if {$action=="ajout"} {
        if {$r!=""} {
            puts $fa $r
        } else {
            puts $fa $arg
        }
            return 1
    }
    if {$action=="sup"} {
        if {$r!=""} {
            if {![string match -nocase $arg [lindex $fa 0]] && ![string match -nocase $arg [lindex $fa 1]]} {
                puts $fa $r
            } else {
                return 1
            }
        }
    }
    if {$action=="join"} {
        if {$r!=""} {
            puts $fa $r
            if [string match -nocase [lindex $fa 0] $arg] {
                return 1
            }
        }
        close $fa
    }
}



Merci Smile

Me reste plus que à voir le soucis pourquoi pour add sa merde avec le bind
Répondre Avertir


Messages dans ce sujet
action non déclarer. - par aliasangelius - 30/10/2011, 12:05
RE: action non déclarer. - par djkenny - 30/10/2011, 12:52
RE: action non déclarer. - par aliasangelius - 30/10/2011, 14:05
RE: action non déclarer. - par aliasangelius - 30/10/2011, 14:23
RE: action non déclarer. - par djkenny - 30/10/2011, 14:32
RE: action non déclarer. - par aliasangelius - 30/10/2011, 14:45
RE: action non déclarer. - par djkenny - 30/10/2011, 18:51
RE: action non déclarer. - par aliasangelius - 31/10/2011, 11:27
RE: action non déclarer. - par djkenny - 31/10/2011, 14:36
RE: action non déclarer. - par djkenny - 31/10/2011, 14:40
RE: action non déclarer. - par aliasangelius - 31/10/2011, 14:44
RE: action non déclarer. - par djkenny - 31/10/2011, 14:46
RE: action non déclarer. - par aliasangelius - 31/10/2011, 15:27
RE: action non déclarer. - par djkenny - 31/10/2011, 17:55
RE: action non déclarer. - par djkenny - 31/10/2011, 18:05
RE: action non déclarer. - par aliasangelius - 31/10/2011, 19:05
RE: action non déclarer. - par djkenny - 31/10/2011, 22:04
RE: action non déclarer. - par aliasangelius - 31/10/2011, 22:17
RE: action non déclarer. - par djkenny - 31/10/2011, 22:39
RE: action non déclarer. - par DnS - 31/10/2011, 22:44
RE: action non déclarer. - par djkenny - 31/10/2011, 22:47
RE: action non déclarer. - par DnS - 31/10/2011, 22:55
RE: action non déclarer. - par aliasangelius - 31/10/2011, 22:59

Atteindre :


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