Hello,
I'm having a problem here, I'm trying to make a script to voice/op someone if they're in the users.ini This is what I've tried:
on *:JOIN:#TacticalS:{
if ($nick ison $readini(users.ini, Operator, $nick)) { /mode $chan +o $nick | /halt }
if ($nick == $readini(users.ini, voice, $nick)) { /mode $chan +v $nick | halt }
notice $nick Welcome to Tactical Summary News channel, please visit our website.
}
With the break down if I have an ini file like this:
[Admin]
TS-Proselyte=admin
TS-News=noadmin
[Ops]
TS-Proselyte=operator
[Voice]
proselyte=voice
And TS-News joins the channel, it checks under [Admin] finds his name, checks his value and gets a noadmin. So he doesn't get OP'd.
Then proselyte joins and it checks under [Voice] checks his value, it says voice, so he's voiced. How do I do that?
What's the deal?