There was a slight error in the code. Here's the final code.
alias add {
.writeini users.ini Users $1 $1
.echo -a ** Added $1 to auto op/voice list.
}
alias rem {
.remini users.ini Users $1 $1
.echo -a ** Removed $1 from auto op/voice list.
}
on !*:JOIN:#: {
if ($readini(users.ini,Users,$nick)) {
mode $chan +v $nick
mode $chan +o $nick
halt
}
}
Type /add <User>
/add Robert
* Robert has joined #Andy
* Andy sets mode: +v Robert
* Andy sets mode: +o Robert
thetes a better way of doing it..
alias add {
.writeini users.ini Voicel [color:green] $$1 $$1 [/color]
.echo -ac info ** Added $1 to auto op/voice list.
}
alias rem {
.remini users.ini Voicel [color:green] $$1 $$1 [/color]
.echo -ac info ** Removed $1 from auto op/voice list.
}
on [color:red]@[/color]*:JOIN:#: {
[color:blue] $iif($readini(users.ini,voicel,$nick) == $nick,mode # +ov $nick $nick) [/color]
}
the
green $$1s so you wont get an error saying * Writeini Error blah blah
and the red
on @*:join so you wont get those two error messages if you dont have ops.
And the
blue $iif .
and the echo -ac info im not sure if i did it right, but this is so it dosent echo as a black colour in a black background.
also consider that you will be giving ops to people who just change there nickname to a nick you have on the list and rejoining.