diff options
Diffstat (limited to 'lib/plugins/tell.ex')
-rw-r--r-- | lib/plugins/tell.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/plugins/tell.ex b/lib/plugins/tell.ex index 34e9f94..2f874d0 100644 --- a/lib/plugins/tell.ex +++ b/lib/plugins/tell.ex @@ -42,7 +42,7 @@ defmodule Nola.Plugins.Tell do messages = :dets.lookup(state.dets, {network, channel, account_id}) if messages != [] do strs = Enum.map(messages, fn({_, from, message, at}) -> - account = IRC.Account.get(from) + account = Nola.Account.get(from) user = IRC.UserTrack.find_by_account(network, account) fromnick = if user, do: user.nick, else: account.name "#{nick}: <#{fromnick}> #{message}" @@ -81,10 +81,10 @@ defmodule Nola.Plugins.Tell do end defp do_tell(state, m, nick_target, message) do - target = IRC.Account.find_always_by_nick(m.network, m.channel, nick_target) + target = Nola.Account.find_always_by_nick(m.network, m.channel, nick_target) message = Enum.join(message, " ") with \ - {:target, %IRC.Account{} = target} <- {:target, target}, + {:target, %Nola.Account{} = target} <- {:target, target}, {:same, false} <- {:same, target.id == m.account.id}, target_user = IRC.UserTrack.find_by_account(m.network, target), target_nick = if(target_user, do: target_user.nick, else: target.name), |