summaryrefslogtreecommitdiff
path: root/lib/irc/account.ex
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-11 19:07:09 +0000
committerJordan Bracco <href@random.sh>2022-12-11 19:07:09 +0000
commitbc3d5b7f4f54d88a2ebf1cadbcd7e2816f07deaa (patch)
treee4880c66b7a2c79de59fd24107c498ba3b0e518b /lib/irc/account.ex
parentfeat(telegram): create account for telegram user (diff)
Fix the fixes.
Diffstat (limited to '')
-rw-r--r--lib/irc/account.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irc/account.ex b/lib/irc/account.ex
index beb8daa..46c7f6e 100644
--- a/lib/irc/account.ex
+++ b/lib/irc/account.ex
@@ -242,7 +242,7 @@ defmodule IRC.Account do
get(id)
end
- defp new_account(%{nick: nick, network: server}) do
+ def new_account(%{nick: nick, network: server}) do
id = EntropyString.large_id()
:dets.insert(file("db"), {id, nick, EntropyString.token()})
:dets.insert(file("predicates"), {{server, {:nick, nick}}, id})