diff --git a/lib/irc/irc.ex b/lib/irc/irc.ex index 4438aca..504fd99 100644 --- a/lib/irc/irc.ex +++ b/lib/irc/irc.ex @@ -77,7 +77,7 @@ defmodule Omnibot.Irc do msg = Msg.parse(line) # Send the message to the router - if msg.prefix && (msg.prefix.nick != State.cfg().nick) do + if (!msg.prefix) || (msg.prefix.nick != State.cfg().nick) do route_msg(self(), msg) end {:noreply, socket}