IRC messages are not routed if they are sent by the bot
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -83,7 +83,9 @@ defmodule Omnibot.Irc do
|
|||||||
msg = Msg.parse(line)
|
msg = Msg.parse(line)
|
||||||
|
|
||||||
# Send the message to the router
|
# Send the message to the router
|
||||||
|
if msg.prefix && (msg.prefix.nick != State.cfg().nick) do
|
||||||
route_msg(self(), msg)
|
route_msg(self(), msg)
|
||||||
|
end
|
||||||
{:noreply, socket}
|
{:noreply, socket}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user