summaryrefslogtreecommitdiff
path: root/lib/irc/account.ex
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-17 13:47:11 +0000
committerJordan Bracco <href@random.sh>2022-12-20 19:29:41 +0100
commitfd4afd7c7acd9b5fda75b628a7e19d0149d8b889 (patch)
treedf571d49fa9dc9c3cd58c94033b9fc81c7b7f8ec /lib/irc/account.ex
parentRename to Nola, pt. 1. Refs T77 (diff)
Nola rename cont. pt. 2. Refs T77.
`find lib -name "*.ex" -type f | xargs sed -i '' 's/LSG/Nola/g'`
Diffstat (limited to '')
-rw-r--r--lib/irc/account.ex10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/irc/account.ex b/lib/irc/account.ex
index 46c7f6e..45680f8 100644
--- a/lib/irc/account.ex
+++ b/lib/irc/account.ex
@@ -32,7 +32,7 @@ defmodule IRC.Account do
end
def file(base) do
- to_charlist(LSG.data_path() <> "/account_#{base}.dets")
+ to_charlist(Nola.data_path() <> "/account_#{base}.dets")
end
defp from_struct(%__MODULE__{id: id, name: name, token: token}) do
@@ -355,7 +355,7 @@ defmodule IRC.Account do
def handle_info({:irc, :text, m = %IRC.Message{text: "web"}}, state) do
auth_url = Untappd.auth_url()
- login_url = LSG.AuthToken.new_url(m.account.id, nil)
+ login_url = Nola.AuthToken.new_url(m.account.id, nil)
m.replyfun.("-> " <> login_url)
{:noreply, state}
end
@@ -364,7 +364,7 @@ defmodule IRC.Account do
code = String.downcase(EntropyString.small_id())
IRC.Account.put_meta(m.account, "sms-validation-code", code)
IRC.Account.put_meta(m.account, "sms-validation-target", m.network)
- number = LSG.IRC.SmsPlugin.my_number()
+ number = Nola.IRC.SmsPlugin.my_number()
text = "To enable or change your number for SMS messaging, please send:"
<> " \"enable #{code}\" to #{number}"
m.replyfun.(text)
@@ -376,7 +376,7 @@ defmodule IRC.Account do
IRC.Account.delete_meta(m.account, "telegram-id")
IRC.Account.put_meta(m.account, "telegram-validation-code", code)
IRC.Account.put_meta(m.account, "telegram-validation-target", m.network)
- text = "To enable or change your number for telegram messaging, please open #{LSG.Telegram.my_path()} and send:"
+ text = "To enable or change your number for telegram messaging, please open #{Nola.Telegram.my_path()} and send:"
<> " \"/enable #{code}\""
m.replyfun.(text)
{:noreply, state}
@@ -384,7 +384,7 @@ defmodule IRC.Account do
def handle_info({:irc, :text, m = %IRC.Message{text: "enable-untappd"}}, state) do
auth_url = Untappd.auth_url()
- login_url = LSG.AuthToken.new_url(m.account.id, {:external_redirect, auth_url})
+ login_url = Nola.AuthToken.new_url(m.account.id, {:external_redirect, auth_url})
m.replyfun.(["To link your Untappd account, open this URL:", login_url])
{:noreply, state}
end