diff options
Diffstat (limited to 'lib/plugins/tell.ex')
-rw-r--r-- | lib/plugins/tell.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/tell.ex b/lib/plugins/tell.ex index 2f874d0..43da9e7 100644 --- a/lib/plugins/tell.ex +++ b/lib/plugins/tell.ex @@ -43,7 +43,7 @@ defmodule Nola.Plugins.Tell do if messages != [] do strs = Enum.map(messages, fn({_, from, message, at}) -> account = Nola.Account.get(from) - user = IRC.UserTrack.find_by_account(network, account) + user = Nola.UserTrack.find_by_account(network, account) fromnick = if user, do: user.nick, else: account.name "#{nick}: <#{fromnick}> #{message}" end) @@ -86,7 +86,7 @@ defmodule Nola.Plugins.Tell do with \ {: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_user = Nola.UserTrack.find_by_account(m.network, target), target_nick = if(target_user, do: target_user.nick, else: target.name), present? = if(target_user, do: Map.has_key?(target_user.last_active, m.channel)), {:absent, true, _} <- {:absent, !present?, target_nick}, |