diff options
Diffstat (limited to 'lib/plugins/preums.ex')
-rw-r--r-- | lib/plugins/preums.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/preums.ex b/lib/plugins/preums.ex index c55248d..505ce7f 100644 --- a/lib/plugins/preums.ex +++ b/lib/plugins/preums.ex @@ -143,7 +143,7 @@ defmodule Nola.Plugins.Preums do {_, account_id, date, _perfect, text} = item h = "#{date.hour}:#{date.minute}:#{date.second}" account = Nola.Account.get(account_id) - user = IRC.UserTrack.find_by_account(m.network, account) + user = Nola.UserTrack.find_by_account(m.network, account) nick = if(user, do: user.nick, else: account.name) m.replyfun.("preums: #{nick} à #{h}: “#{text}”") end @@ -157,7 +157,7 @@ defmodule Nola.Plugins.Preums do top = topnicks(state.dets, channel, sort_by: :score) |> Enum.map(fn({account_id, {count, score}}) -> account = Nola.Account.get(account_id) - user = IRC.UserTrack.find_by_account(m.network, account) + user = Nola.UserTrack.find_by_account(m.network, account) nick = if(user, do: user.nick, else: account.name) "#{nick}: #{score} (#{count})" end) |