diff options
author | Jordan Bracco <href@random.sh> | 2022-12-20 02:32:12 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:41 +0100 |
commit | 9aecb2bf2c4210d8b6b6976f749902b23ade83d6 (patch) | |
tree | 9547fdefe13f8c7695a8dea389ffd9d4ddbaf83c /lib/irc | |
parent | Actually do not prefix folders with nola_ refs T77 (diff) |
IRC.PubSub -> Nola.PubSub, refs T77
Diffstat (limited to 'lib/irc')
-rw-r--r-- | lib/irc/connection.ex | 2 | ||||
-rw-r--r-- | lib/irc/irc.ex | 2 | ||||
-rw-r--r-- | lib/irc/nola_irc.ex | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/lib/irc/connection.ex b/lib/irc/connection.ex index 86d8279..4472466 100644 --- a/lib/irc/connection.ex +++ b/lib/irc/connection.ex @@ -423,7 +423,7 @@ defmodule IRC.Connection do dispatch("#{net}/#{chan}:events", {:irc, :event, event}) end - def dispatch(keys, content, sub \\ IRC.PubSub) + def dispatch(keys, content, sub \\ Nola.PubSub) def dispatch(key, content, sub) when is_binary(key), do: dispatch([key], content, sub) def dispatch(keys, content, sub) when is_list(keys) do diff --git a/lib/irc/irc.ex b/lib/irc/irc.ex index 71d6d93..7cd9dc8 100644 --- a/lib/irc/irc.ex +++ b/lib/irc/irc.ex @@ -32,7 +32,7 @@ defmodule IRC do end def register(key) do - case Registry.register(IRC.PubSub, key, []) do + case Registry.register(Nola.PubSub, key, []) do {:ok, _} -> :ok error -> error end diff --git a/lib/irc/nola_irc.ex b/lib/irc/nola_irc.ex index 870b99d..dde99af 100644 --- a/lib/irc/nola_irc.ex +++ b/lib/irc/nola_irc.ex @@ -12,7 +12,6 @@ defmodule Nola.IRC do [ worker(Registry, [[keys: :duplicate, name: IRC.ConnectionPubSub]], id: :registr_irc_conn), - worker(Registry, [[keys: :duplicate, name: IRC.PubSub]], id: :registry_irc), worker(IRC.Membership, []), worker(IRC.Account, []), worker(IRC.UserTrack.Storage, []), |