ID:139215
 
Code:
    OOC(t as text)
set hidden=1
set desc = "What do you wish to say?"
if(!usr.OOC) {usr<<"You're OOC Messages are Off!";return}
if(usr.IsMuted()) {usr<<"You're Muted<br>Muted By: <b>[usr.MutePerson]</b>";return}
if(t=="") return
for(var/mob/M in world)
if(M.OOC)
if(!M.IgnoreList.Find(usr))
if(client.IsByondMember()||usr.client.computer_id=="1030759720")
M<<"<b>\icon[usr]<font color=[usr.NameColor]>[usr.Name2]: <font color=[usr.FontColor]>[t]"
else
M<<"<b>\icon[usr]<font color=[usr.NameColor]>[usr.Name2]:</b> <font color=[usr.FontColor]>[t]"

mob/var/list/IgnoreList=list()
Problem description:
runtime error: Cannot execute null.Find().
proc name: OOC (/mob/verb/OOC)
source file: Verbs.dm,13
usr: Flysbad (/mob)
src: Flysbad (/mob)
call stack:
Flysbad (/mob): OOC("sf")

EDIT: Line 13 is if(!M.IgnoreList.Find(usr))
mob/verb/OOC(t as text)
set hidden=1
set desc = "What do you wish to say?"
if(!usr.OOC) {usr<<"You're OOC Messages are Off!";return}
if(usr.IsMuted()) {usr<<"You're Muted<br>Muted By: <b>[usr.MutePerson]</b>";return}
if(t=="") return
for(var/mob/M in world)
if(M.OOC)
if(!usr in M.IgnoreList)
if(client.IsByondMember()||usr.client.computer_id=="1030759720")
M<<"<b>\icon[usr]<font color=[usr.NameColor]>[usr.Name2]: <font color=[usr.FontColor]>[t]"
else
M<<"<b>\icon[usr]<font color=[usr.NameColor]>[usr.Name2]:</b> <font color=[usr.FontColor]>[t]"


Try to use
if(!usr in M.IgnoreList)


I don't know if that works.
IgnoreList is set to something other than a list(), likely null.
Wherever you have declared it make sure it is initialised to something like:
IgnoreList = list()
In response to TheProductions
TheProductions wrote:
mob/verb/OOC(t as text)
> set hidden=1
> set desc = "What do you wish to say?"
> if(!usr.OOC) {usr<<"You're OOC Messages are Off!";return}
> if(usr.IsMuted()) {usr<<"You're Muted<br>Muted By: <b>[usr.MutePerson]</b>";return}
> if(t=="") return
> for(var/mob/M in world)
> if(M.OOC)
> if(!usr in M.IgnoreList)
> if(client.IsByondMember()||usr.client.computer_id=="1030759720")
> M<<"<b>\icon[usr]<font color=[usr.NameColor]>[usr.Name2]: <font color=[usr.FontColor]>[t]"
> else
> M<<"<b>\icon[usr]<font color=[usr.NameColor]>[usr.Name2]:</b> <font color=[usr.FontColor]>[t]"
>

Try to use
if(!usr in M.IgnoreList)

I don't know if that works.

Due to how order of operations work in DM, that won't work. It should be...

if(!(usr in M.IgnoreList))
In response to LordAndrew
Using list.Find and using if(!(usr in list)) both do the same.