I am trying to write a simplified version of controlling alert message at the top of the screen. This seemed simple enough; simply replace the blizzard function with one that will check first for certain phrases and the send the rest back to the blizzard one. That seemed to create a problem within itself. It works perfectly ... until you enter an instance. I've used fireshow and replicated all events that fire when entering an instance and none of the individual events seem to break the mod. This is as basic as I can make the code while still replicating the error:
TempMod_OldErrorFrameEvent = UIErrorsFrame_OnEvent
UIErrorsFrame_OnEvent = TempMod_ErrorSupress
function TempMod_ErrorSupress(event, message)
This should do nothing ... which is exactly what it does normally. After passing through an instance portal it will give a stack overflow error every time "SYSMSG" or "UI_INFO_MESSAGE" or "UI_ERROR_MESSAGE" fires ... which are the 3 events this frame will accept normally. I have added a line to this simply to report the event and message every time it fires. This spams the entire chat log with the same event and message until it eventually gives the stack overflow error. I am just truly confused about why an instance is making this break since all events that fireshow is picking up don't break it if they are fired by themselves.