Guest User

Untitled

a guest
Dec 12th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 1.08 KB | None | 0 0
  1. bind msg -|- auth auth
  2. proc auth {nick uhost hand arg } {
  3.     global botnick pooshy
  4.     set password [lindex $arg 0]
  5.     if {$password==""} {
  6.         putdcc $pooshy(idx) ":$pooshy(nick) NOTICE $nick :\2Syntax:\2 /msg $botnick auth <pass>."
  7.         return 0
  8.     }
  9.     if {[passwdok $hand ""]} {
  10.         putdcc $pooshy(idx) ":$pooshy(nick) NOTICE $nick :Votre mot de passe n' est pas défini, \2/msg $botnick pass <pass>\2."
  11.         return 0
  12.     }
  13.     if {[passwdok $hand $password]} {
  14.         putdcc $pooshy(idx) ":$pooshy(nick) NOTICE $nick :Tu vien d' être invité sur le channel \2$pooshy(log)\2 merci de le Joindre!!"
  15.         putdcc $pooshy(idx) ":$pooshy(nick) PRIVMSG $pooshy(log) :\[$nick\] vient de se Auth."
  16.         if {![onchan $nick $pooshy(log)]} {
  17.             putdcc $pooshy(idx) ":$pooshy(nick) MODE $pooshy(log) -O"
  18.             putdcc $pooshy(idx) ":$pooshy(nick) INVITE $nick $pooshy(log)"
  19.             putdcc $pooshy(idx) ":$pooshy(nick) SAJOIN $nick $pooshy(log)"
  20.             putdcc $pooshy(idx) ":$pooshy(nick) MODE $pooshy(log) +O"
  21.         }
  22.     } else {
  23.         putdcc $pooshy(idx) ":$pooshy(nick) NOTICE $nick :Attention votre \2mot de pass\2 est incorrect."
  24.     }
  25.     return 0
  26. }
Add Comment
Please, Sign In to add comment