"); return; } if (file_exists($fn)==True) { $data=json_decode(file_get_contents($fn),True); } else { $data=array(); } $parts=explode(" ",$trailing); $target=strtolower($parts[0]); array_shift($parts); $trailing=trim(implode(" ",$parts)); $save_data=False; if (isset($data[$server])==False) { $data[$server]=array(); $save_data=True; } if (isset($data[$server][$nick]["ignore"])==False) { $data[$server][$nick]["ignore"]=array(); $save_data=True; } if (isset($data[$server][$nick]["messages"])==False) { $data[$server][$nick]["messages"]=array(); $save_data=True; } if ($target==">ignore") { if (in_array($trailing,$data[$server][$nick]["ignore"])==False) { $data[$server][$nick]["ignore"][]=$trailing; $save_data=True; notice($nick,"added nick \"$trailing\" to ~tell ignore list for $nick"); } else { notice($nick,"nick \"$trailing\" already in ~tell ignore list for $nick"); } } elseif ($target=="0) { for ($i=0;$i