summaryrefslogtreecommitdiff
path: root/lib/plugins/tell.ex
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-20 02:47:33 +0000
committerJordan Bracco <href@random.sh>2022-12-20 19:29:41 +0100
commit2127553ad058bfa688feb73097e604a8fb5a1899 (patch)
tree3246c31aef0f6c3a110376de21265a6f5d02c597 /lib/plugins/tell.ex
parentIRC.PubSub -> Nola.PubSub, refs T77 (diff)
Rename IRC.Account to Nola.Account, refs T77
Diffstat (limited to 'lib/plugins/tell.ex')
-rw-r--r--lib/plugins/tell.ex6
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),