Code / mIRC / Auth Auth

  1. ; Undernet (http://www.undernet.org) Automatic Authentication Script
  2. ; Written by Scott Wilcox (http://nixbox.org/) - June 2004
  3.  
  4. ; Bind to the start event
  5. on *:start: {
  6.   ; Change this, to match your Undernet username.
  7.   %undernet.username = MyUsername
  8.  
  9.   ; Change this, to match your Undernet password.
  10.   %undernet.password = MyPassword
  11.  
  12.   ; Change this to the current auth command - this shouldn't ever change.
  13.   %undernet.authcmd = msg x@channels.undernet.org login
  14.  
  15.   ; Change this to the modes you wish to set after authing.
  16.   %undernet.modes = xi
  17.  
  18.   ; Change this to 1 to add modes upon authing
  19.   %undernet.authx = 1
  20. }
  21.  
  22. ; Bind to the on CONNECT event
  23. on *:connect: {
  24.   if ($network == Undernet) {
  25.     echo -a * Info: Authenticating to Undernet Services
  26.     %undernet.authcmd %undernet.username %undernet.password
  27.     if (%undernet.authx == 1) {
  28.       echo -a * Info: Changing mode for $me to + $+ %undernet.modes
  29.       .mode $me + $+ %undernet.modes
  30.     }
  31.   }
  32. }

Download as Text : January 6th, 2009