ignoring = list()//A list variable is best for this
Ignore(mob/M in world)
if(M in usr.ignoring)// For the forgiving type.
usr.ignoring -= M
usr.ignoring += M
usr << "<i>You are now ignoring [M]"
mob/verb/OOC(msg as text)
for(var/mob/M in world) //For ever user in the world that has the potential to see the message
if(usr in M.ignoring)//If one user has me on the ignore list..
M << " "//I see nothing
M << "[usr]: [msg]"//but if not, I see the message.
//You need this so the ignoring list won't get stuck if you have a saving system.
usr.ignoring = null
This code is for beginners.