mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2014
Posts: 42
K
Kooky Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Oct 2014
Posts: 42
Code:
if ($strip($1) == !GLogin) {
  if ($readini(GoELogin.txt,$nick,n,pass) == $2) && ($readini($nick $+ .chr,$nick,n,name) == $3) { 
    writeini GoELogin.txt $nick pass passaccept on
    notice $nick You have logged in!
  mode #Goe`OOC +v $nick  }
  else notice $nick Wrong information. This is not the information for $3
  halt
}
}
}
if ($strip($1) == !GLogout) {
if ($readini(GoELogin.txt,$nick,n,pass) == $2) && ($readini($nick $+ .chr,$nick,n,name) == $3) { 
writeini GoELogin.txt $nick pass passaccept off
notice $nick You have logged out!
mode #Goe`OOC -v $nick  }
else notice $nick Wrong information. This is not the information for $3
halt
}
}
}




It's not working at all, not even sending me a notice or anything. I'm blind to why this isn't working right and it's the last part of this area of my bot that I can't seem to get.

The GoELogin.txt reads as:
Code:
[~Astrakelestria]
Name=Meelu
Register=on
Pass=Hunny

[Astrakelestria]
pass=passaccept on



And the

Code:
[~Astrakelestria]
Name=Meelu
Register=on

[pass]
pass=Hunny
Email=EmailMine@email.com
passaccept=on

[Register]
Complete=on


I'm thinking I'm blind to something... any help is appreciated. This is supposed to be a simple login script to access bot commands.

Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Try some simple debugging methods:

1) check brackets. Seems like this could be your problem, but can't see all of the code.

2) Echo all variables. Alternatively, put echo -ag <line number> after each line to see when the script stops working.


Link Copied to Clipboard