# Auth 1.1

# This script auths your bot to the service bot you use (must be Q [could have a different nick])
namespace eval auth {
  variable version  1.1
  variable author   dex

  # AUTH'ing data.
  variable name     "Mejin"
  variable pass     "palare3"

  # Use usermode x? (Hides the hostmask with for example authname.users.quakenet.org)
  variable usex     1
  
  # Service bot host (default to Q on QuakeNet)
  variable service  "Q@CServe.QuakeNet.org"
    
  bind EVNT  -|-   init-server   [namespace current]::connect
}

proc auth::connect {event} {
  putquick "PRIVMSG $auth::service :AUTH $auth::name $auth::pass"
  if {$auth::usex} {
    putquick "MODE $::botnick +x"
  }
}

putlog "[file tail [info script]] $auth::version by $auth::author loaded."
