More Chat Support?
#1
Is there a way to capture the out going message?

Example: 
  • Check to see what the message starts with "Example lowercase"
  • Replace the chat message
It would be nice to be able to do this.
Reply
Thanks given by:
#2
You can use the OnChat hook to do that.
For example you can use this to make the first character uppercase:
function OnChat(a_Player, a_Message)
	a_Message = (a_Message:gsub("^%l", string.upper))
	return false, a_Message
end
Reply
Thanks given by:
#3
Did you use regex for "^%l"
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)