yeah that wont work bcz you dont remove your file AcceptedNicks.txt delet it and try again
and remember if you use my way u have to edit someting in on open event
if ($read(AcceptedNicks.txt, s, %host)) || ($nick isop #chan) || ($nick ison #chan) || ($nick isvoice #chan) {
replace it by
if ($read(AcceptedNicks.txt,%host)) || ($nick(#chan,$nick,ovr) {
PS: i dont know why u check if the nick is op or voice or is in chan (mean if nick is regular) so u can just check if nick ison chan!