Auth Script - 08/04/04 05:11 PM
I am trying to build a auto login/auth/identify script for quakenet and chatbear. Here is the code:
Now, when connect to any of the servers that are in the if statements, and with the status as 1, nothing happens. It just connects! WTF!?!?!?! Why won't it do the commands?
Code:
menu status,menubar { Annoyance.Inc AutoLogin .QuakeNet ..Set Username ( $+ %qnetuname $+ ) :/setqnetuser $$?="Username:" ..Set Password ( $+ %qnetpword $+ ) :/setqnetpass $$?="Password:" ..Connect :/server -m irc.quakenet.org .ChatBear ..Set Username ( $+ %cbuname $+ ) :/setcbuser $$?="Username:" ..Set Password ( $+ %cbpword $+ ) :/setcbpass $$?="Password:" ..Connect :/server -m irc.chatbear.com .On/Off ( $+ %autologstatus $+ ) :/autologswitch .About :/aboutautolog } alias setqnetuser { set -n %qnetuname $$1 echo **Username for Qnet set! } alias setqnetpass { set -n %qnetpword $$1 echo **Password for Qnet set! } alias setcbuser { set -n %cbuname $$1 echo **Username for ChatBear Set! } alias setcbpass { set -n %cbpword $$1 echo **Password for ChatBear set! } alias autologswitch { if ( %autologstatus == 1 ) { set -n %autologstatus 0 echo **AutoLogin System is OFF } elseif ( %autologstatus == 0 ) { set -n %autologstatus 1 echo **AutoLogin System is ON } } alias aboutautolog { echo 7,1.:Annoyance.Inc Autologin for Qnet and ChatBear:. echo 1,7.:Version 0.1:. } on *:CONNECT: { if ( %autologstatus == 1 ) { if ( $server == irc.quakenet.org ) { msg Q@CServe.quakenet.org auth %qnetuname %qnetpword } if ( $server == irc.chatbear.com ) { msg Marvin !identify %cbuname %cbpword } } }
Now, when connect to any of the servers that are in the if statements, and with the status as 1, nothing happens. It just connects! WTF!?!?!?! Why won't it do the commands?