View Single Post
05/27/19, 08:23 PM   #1
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
Post Abbreviate Guild Names in Chat

So, I've been trying for quite a while to get this working. The idea is simple:
[My Guild Name] [@bob]: Hey guys.

... turns into ...

[MGN] [@bob]: Hey guys.

I've tried prehooking to the CHAT_SYSTEM, EVENT_CHAT_MESSAGE_CHANNEL event. I've tried prehooking to CHAT_SYSTEM.primaryContainer, "AddMessageToWindow". I even tried changing the guild names in the CHAT_SYSTEM table.

All approaches crash miserably. Any changes to the guild name makes the game very unhappy. No error, just freeze.

So, I'm a bit stumped. Any good approach on getting this done? Without redoing the whole chat system.
  Reply With Quote