Advertisement
unixwz0r

greet.tcl for eggdrop

May 27th, 2015
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 1.60 KB | None | 0 0
  1. # Greet.tcl by: Cyberpunkz
  2. # Keep it simple greet with colours
  3.  
  4. proc commandchar {} {
  5.     return "!"
  6. }
  7.  
  8. bind join * * onjoin
  9. bind join * * onjoin2
  10.  
  11.  
  12.  
  13. proc onjoin {nick host hand chan} {
  14.     global botnick
  15.     if {$botnick == $nick} {
  16.     } else {
  17.         if {[validuser $nick] == 1} {
  18.             if {[passwdok "$hand" ""] == "1"} {
  19.                 putlog "$nick ($hand) Does Not Have A Password Set.  /msg $nick."
  20.                 putserv "privmsg \0031$nick :You Don't Have A Password Set On Me.  Please One Set One Now By Typing: /msg $botnick pass <PASSWORD>\003"
  21.             }
  22.         }
  23.         putserv "privmsg $chan :\0034«--($nick)--»\003 \0031This Channel is \0034mostly\003 \0031for\003 \0034BSD\003 \0031only, but GNU/Linux and other UNIX type systems are ok to discuss.\003 \0032Thank you & happy chatting! \003"
  24.     }
  25. }
  26.  
  27. proc onjoin2 {nick host hand chan} {
  28.     global botnick
  29.     if {$botnick == $nick} {
  30.     } else {
  31.         if {[validuser $nick] == 1} {
  32.             if {[passwdok "$hand" ""] == "1"} {
  33.                 putlog "$nick ($hand) Does Not Have A Password Set.  /msg $nick."
  34.                 putserv "privmsg \0031$nick :You Don't Have A Password Set On Me.  Please One Set One Now By Typing: /msg $botnick pass <PASSWORD>\003"
  35.             }
  36.         }
  37.         putserv "privmsg $chan :\0036--» Welcome \0032$nick\002 \0036to\003 \0032$chan\002\0036, if you have any questions please /msg an operator.\002 \0039This is a\003 \0032Free\003\0034BSD\002 \0039community!"
  38.     }
  39. }
  40. ##################################################################################################
  41. putlog "CyberpunkZ greet.tcl script Loaded!"
  42. ##################################################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement