diff options
Diffstat (limited to 'lib/irc/connection.ex')
-rw-r--r-- | lib/irc/connection.ex | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/irc/connection.ex b/lib/irc/connection.ex index 4472466..49f5774 100644 --- a/lib/irc/connection.ex +++ b/lib/irc/connection.ex @@ -293,7 +293,7 @@ defmodule IRC.Connection do else if !Map.get(user.options, :puppet) do reply_fun = fn(text) -> irc_reply(state, {chan, sender}, text) end - account = IRC.Account.lookup(sender) + account = Nola.Account.lookup(sender) message = %IRC.Message{id: FlakeId.get(), transport: :irc, at: NaiveDateTime.utc_now(), text: text, network: state.network, account: account, sender: sender, channel: chan, replyfun: reply_fun, trigger: extract_trigger(text)} @@ -310,7 +310,7 @@ defmodule IRC.Connection do # Received a private message def handle_info({:received, text, sender}, state) do reply_fun = fn(text) -> irc_reply(state, {sender.nick, sender}, text) end - account = IRC.Account.lookup(sender) + account = Nola.Account.lookup(sender) message = %IRC.Message{id: FlakeId.get(), transport: :irc, text: text, network: state.network, at: NaiveDateTime.utc_now(), account: account, sender: sender, replyfun: reply_fun, trigger: extract_trigger(text)} message = case IRC.UserTrack.messaged(message) do @@ -322,7 +322,7 @@ defmodule IRC.Connection do end ## -- Broadcast - def handle_info({:broadcast, net, account = %IRC.Account{}, message}, state) do + def handle_info({:broadcast, net, account = %Nola.Account{}, message}, state) do if net == state.conn.network do user = IRC.UserTrack.find_by_account(net, account) if user do @@ -350,7 +350,7 @@ defmodule IRC.Connection do priv = if operator, do: [:operator], else: [] # Don't touch -- on WHO the bot joined, not the users. IRC.UserTrack.joined(channel, who, priv, false) - account = IRC.Account.lookup(who) + account = Nola.Account.lookup(who) if account do {:account, who.network, channel, who.nick, account.id} end @@ -367,7 +367,7 @@ defmodule IRC.Connection do def handle_info({:joined, channel, sender}, state) do IRC.UserTrack.joined(channel, sender, []) - account = IRC.Account.lookup(sender) + account = Nola.Account.lookup(sender) if account do dispatch("account", {:account, sender.network, channel, sender.nick, account.id}) end |