Hello
I have a mysterious problem with the chat output of my addon combined with pChat.
It works fine, with color formatting and everything how i want it to work. But if players use pChat, the chat messages are cut after an undefined length:
Green: Without color-formatting (less chars), the entire text is displayed
Yellow: With full color-formatting (longest char-count), it's cut early
Red: Only half of the color-formatting, more chars are displayed but still not the entire message
Without pChat and full color-formatting, everything works fine...
Edit: If i print the numbers 1-9 two times (1...91...9), every number with it's own color, it works fine without pChat. With pChat it's cut off after the second numeber 1... don't get it :/
Code:
CHAT_SYSTEM:AddMessage(""
.."|c".."F27C7C".."1".."|r"
.."|c".."71DE73".."2".."|r"
.."|c".."F27C7C".."3".."|r"
.."|c".."71DE73".."4".."|r"
.."|c".."F27C7C".."5".."|r"
.."|c".."71DE73".."6".."|r"
.."|c".."F27C7C".."7".."|r"
.."|c".."71DE73".."8".."|r"
.."|c".."F27C7C".."9".."|r"
-- and again
.."|c".."71DE73".."1".."|r"
-- cut off by pchat here
.."|c".."F27C7C".."2".."|r"
.."|c".."71DE73".."3".."|r"
.."|c".."F27C7C".."4".."|r"
.."|c".."71DE73".."5".."|r"
.."|c".."F27C7C".."6".."|r"
.."|c".."71DE73".."7".."|r"
.."|c".."F27C7C".."8".."|r"
.."|c".."71DE73".."9".."|r"
)
Any ideas what causes this? Couldn't find anything in the pChat code or pChat LibChat lib...
Otherwise: Is there a way to detect pChat and disable the color formatting / show a hint for the users?