ID:164312
 
I am trying to have chat icons able to be toggled by users due to rtf problems. I know a icon chat toggle exists because wiz_chat has this feature. This would be appreciated by many linux byonders, especially this one.

~ Doc
mob
var/chaticons = 1

verb/ToggleChatIcons()
chaticons = !chaticons
if(chaticons)
src << "Chat Icons On."
else
src << "Chat Icons Off."

verb/Chat(text as text)
for(var/mob/M in world)
if(M.chaticons)
M << "\icon[src.icon] [src]: [text]"
else
M << "[src]: [text]"


Something like that should work.
In response to Foomer
That should all be under client, and it should be for(var/client/M) instead of for(var/mob/M in world).