Hey all, I've been going through the wiki and can't really understand how to tell what chat channel is incoming. For example if my friend whispered me, how am I able to acknowledge the message that he sent? Also how would I be able to return a message? I'm pretty tired at the moment, and most likely missed it, but if anyone can help that would be awesome!
Alright thanks! So I'm assuming that id is the unique chat identifier, channel is the incoming channel, fromName is the person who is communicating with you, and then text is the actual text? This would solve for incoming messages but how would you return a message? Would you literally just in ParseChat return a message?
Damn spammers :/. Ok well another question, at the moment I'm set up so that when a whisper comes to you it lists the username in the chat log (don't criticize, I'm tweaking stuff) however after the names a "^n" is appended to the string. I tried to use string.gsub to remove them but it doesn't work. Any thoughts?
Code:
function incMessage(id, channel, fromName, msg)
local name = string.gsub(fromName,"^n", "")
notifyArray[count] = name