summaryrefslogtreecommitdiff
path: root/lib/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins')
-rw-r--r--lib/plugins/account.ex2
-rw-r--r--lib/plugins/base.ex2
-rw-r--r--lib/plugins/say.ex2
-rw-r--r--lib/plugins/txt.ex4
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/plugins/account.ex b/lib/plugins/account.ex
index 20abab7..242b290 100644
--- a/lib/plugins/account.ex
+++ b/lib/plugins/account.ex
@@ -102,7 +102,7 @@ defmodule Nola.Plugins.Account do
code = String.downcase(EntropyString.small_id())
Nola.Account.put_meta(m.account, "sms-validation-code", code)
Nola.Account.put_meta(m.account, "sms-validation-target", m.network)
- number = Nola.IRC.Sms.my_number()
+ number = Nola.Plugin.Sms.my_number()
text = "To enable or change your number for SMS messaging, please send:"
<> " \"enable #{code}\" to #{number}"
m.replyfun.(text)
diff --git a/lib/plugins/base.ex b/lib/plugins/base.ex
index 3188495..0f2c7e5 100644
--- a/lib/plugins/base.ex
+++ b/lib/plugins/base.ex
@@ -86,7 +86,7 @@ defmodule Nola.Plugins.Base do
pid when is_pid(pid) <- GenServer.whereis(module),
:ok <- GenServer.stop(pid)
do
- IRC.Plugin.switch(module, false)
+ Nola.Plugins.switch(module, false)
m.replyfun.("stopped: #{inspect(pid)}")
else
false -> m.replyfun.("not loaded")
diff --git a/lib/plugins/say.ex b/lib/plugins/say.ex
index 3df3ac8..114ca64 100644
--- a/lib/plugins/say.ex
+++ b/lib/plugins/say.ex
@@ -62,7 +62,7 @@ defmodule Nola.Plugins.Say do
chan2 = String.replace(chan, "#", "")
if (target == "#{net}/#{chan}" || target == "#{net}/#{chan2}" || target == chan || target == chan2) do
if with_nick? do
- IRC.send_message_as(account, net, chan, text)
+ Nola.Irc.send_message_as(account, net, chan, text)
else
Nola.Irc.Connection.broadcast_message(net, chan, text)
end
diff --git a/lib/plugins/txt.ex b/lib/plugins/txt.ex
index 4f9a803..3b431e9 100644
--- a/lib/plugins/txt.ex
+++ b/lib/plugins/txt.ex
@@ -520,7 +520,7 @@ defmodule Nola.Plugins.Txt do
end
defp can_write?(%{rw: rw?, locks: locks}, msg = %{channel: nil, sender: sender}, trigger) do
- admin? = IRC.admin?(sender)
+ admin? = Nola.Irc.admin?(sender)
locked? = case :dets.lookup(locks, trigger) do
[{trigger}] -> true
_ -> false
@@ -537,7 +537,7 @@ defmodule Nola.Plugins.Txt do
end
defp can_write?(state = %__MODULE__{rw: rw?, locks: locks}, msg = %{channel: channel, sender: sender}, trigger) do
- admin? = IRC.admin?(sender)
+ admin? = Nola.Irc.admin?(sender)
operator? = Nola.UserTrack.operator?(msg.network, channel, sender.nick)
locked? = case :dets.lookup(locks, trigger) do
[{trigger}] -> true