Quantcast

Should no longer return "Command not allowed from chat" when command is sent in say/yell channel.

F16Gaming [04-30-12 - 18:31]
Should no longer return "Command not allowed from chat" when command is sent in say/yell channel.
Filename
Events_Chat.lua
diff --git a/Events_Chat.lua b/Events_Chat.lua
index 0bd94e9..611a0ef 100644
--- a/Events_Chat.lua
+++ b/Events_Chat.lua
@@ -193,7 +193,7 @@ function C.Events.CHAT_MSG_SAY(self, event, ...)
 	local chan = CM:GetRespondChannelByEvent(event)
 	local msg = (select(1, ...))
 	local sender = (select(2, ...))
-	CM:HandleMessage(msg, sender, chan)
+	CM:HandleMessage(msg, sender, chan, nil, "SAY")
 end

 --- Event handler for CHAT_MSG_WHISPER.
@@ -220,5 +220,5 @@ function C.Events.CHAT_MSG_YELL(self, event, ...)
 	local chan = CM:GetRespondChannelByEvent(event)
 	local msg = (select(1, ...))
 	local sender = (select(2, ...))
-	CM:HandleMessage(msg, sender, chan)
+	CM:HandleMessage(msg, sender, chan, nil, "YELL")
 end