menu nicklist {
Protect
.Add: {
if ($read(protect.txt,w,$address($$1,8))) {
echo 2 -a *** $$1 ( $+ $address($$1,8) $+ ) is already in protect list.
}
else {
echo 2 -a *** Added $$1 ( $+ $address($$1,8) $+ ) to protect list.
.write protect.txt $address($$1,8)
}
}
.Del: {
if (!$read(protect.txt,w,$address($$1,8))) {
echo 2 -a *** $$1 ( $+ $address($$1,8) $+ ) isn't in protect list.
}
else {
echo 2 -a *** Removed $$1 ( $+ $address($$1,8) $+ ) from protect list.
write -dw $+ "* $+ $address($$1,8) $+ *" protect.txt
}
}
}
on @*:Join:[color:red]#channel[/color]: {
if ($read(protect.txt,w,$address($nick,8))) {
msg $chan $nick is in my protect list. Now Opping.
mode $chan +o $nick
}
}