Fix routing bug in IRC and base plugin
Previously, messages were only routed from IRC if they were *not* for the current user. This should only be happening for privmsg messages, since a plugin is generally aware of what it's sending out. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -77,9 +77,8 @@ defmodule Omnibot.Irc do
|
||||
msg = Msg.parse(line)
|
||||
|
||||
# Send the message to the router
|
||||
if (!msg.prefix) || (msg.prefix.nick != State.cfg().nick) do
|
||||
route_msg(self(), msg)
|
||||
end
|
||||
route_msg(self(), msg)
|
||||
|
||||
{:noreply, socket}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user