Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
Wrapped bridged message handling in a conditional statement. (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrogaski committed Nov 3, 2014
1 parent b57da18 commit 72a7df2
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions WsGreenWall.lua
Original file line number Diff line number Diff line change
Expand Up @@ -417,16 +417,21 @@ function WsGreenWall:OnBridgeMessage(channel, tBundle, strSender)
end
end

-- Apply tagging.
if self.options.bTag then
message = self:TagMessage(message, tBundle.guild_tag)
end
if tBundle.event_type == EVENT_CHAT then

-- Apply tagging.
if self.options.bTag then
message = self:TagMessage(message, tBundle.guild_tag)
end

-- Clean up unprintable characters.
message = self:GroomMessage(message)
-- Clean up unprintable characters.
message = self:GroomMessage(message)

-- Generate an event for the received chat message.
Event_FireGenericEvent("ChatMessage", self.channel[chanId].target, message)
-- Generate an event for the received chat message.
Event_FireGenericEvent("ChatMessage", self.channel[chanId].target, message)

end

end

end
Expand Down

0 comments on commit 72a7df2

Please sign in to comment.