try this m8
if (!aowner == $strip($1)) { writeini users.ini BotOwners Nicks $2 $readini(users.ini,BotOwners,Nicks) | msg $chan Added $2 as owner of $me }
if (!downer == $strip($1)) { writeini users.ini BotOwners Nicks $remove($readini(users.ini,BotOwners,Nicks),$2,) | msg $chan Deleted $2 as owner of $me }
if (!amaster == $strip($1)) { writeini users.ini BotMasters Nicks $2 $readini(users.ini,BotMasters,Nicks) | msg $chan Added $2 as master of $me }
if (!dmaster == $strip($1)) { writeini users.ini BotMasters Nicks $remove($readini(users.ini,BotMasters,Nicks),$2) | msg $chan Deleted $2 as master of $me }
if (!auser == $strip($1)) { writeini users.ini BotUsers Nicks $2 $readini(users.ini,BotUsers,Nicks) | msg $chan Added $2 as user of $me }
if (!duser == $strip($1)) { writeini users.ini BotUsers Nicks $remove($readini(users.ini,BotUsers,Nicks),$2) | msg $chan Deleted $2 as user of $me }