summaryrefslogtreecommitdiff
path: root/lib/telegram/room.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/telegram/room.ex')
-rw-r--r--lib/telegram/room.ex8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/telegram/room.ex b/lib/telegram/room.ex
index 49fc06d..cc10e90 100644
--- a/lib/telegram/room.ex
+++ b/lib/telegram/room.ex
@@ -72,7 +72,7 @@ defmodule Nola.TelegramRoom do
end
defp find_or_create_meta_account(from = %{"id" => user_id}, state) do
- if account = IRC.Account.find_meta_account("telegram-id", user_id) do
+ if account = Nola.Account.find_meta_account("telegram-id", user_id) do
account
else
first_name = Map.get(from, "first_name")
@@ -84,9 +84,9 @@ defmodule Nola.TelegramRoom do
username = Map.get(from, "username", first_name)
account = username
- |> IRC.Account.new_account()
- |> IRC.Account.update_account_name(name)
- |> IRC.Account.put_meta("telegram-id", user_id)
+ |> Nola.Account.new_account()
+ |> Nola.Account.update_account_name(name)
+ |> Nola.Account.put_meta("telegram-id", user_id)
Logger.info("telegram_room: created account #{account.id} for telegram user #{user_id}")
account