Guest User

Untitled

a guest
Feb 28th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.64 KB | None | 0 0
  1. proc fepo {nick action arg} {
  2.         set fa [open "Salon.db" w+]
  3.         while {![eof $fa]} {
  4.              set get [gets $fa]
  5.              if {[string equal [string tolower $get] [string tolower $nick]]==1} {
  6.              }
  7.         }
  8.         close $fa
  9.         return 0
  10.     }
  11.     if {$action=="ajout"} {
  12.         if {$fa!=""} {
  13.             puts $fa $arg
  14.             return 1
  15.         }
  16.     }
  17.     if {$action=="sup"} {
  18.         if {$fa!=""} {
  19.             if {![string match -nocase $arg [lindex $fa 0]] && ![string match -nocase $arg [lindex $fa 1]]} {
  20.                 puts $fa $arg
  21.                 return 1
  22.             }
  23.         }
  24.     }
Add Comment
Please, Sign In to add comment