bad argument #1 to 'string.gsub' (string expected, got nil)
stack traceback:
[C]: in function 'string.gsub'
user:/AddOns/pChat/pChat.lua:2888: in function 'AddLinkHandler'
user:/AddOns/pChat/pChat.lua:2971: in function 'RestoreChatMessagesFromHistory'
user:/AddOns/pChat/pChat.lua:3052: in function 'RestoreChatHistory'
user:/AddOns/pChat/pChat.lua:6085: in function 'OnPlayerActivated'