summaryrefslogtreecommitdiff
path: root/lib/irc/irc.ex
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-20 03:27:32 +0000
committerJordan Bracco <href@random.sh>2022-12-20 19:29:42 +0100
commita2e3a9e6fcab2e32e0ca208d8242e8d6812a67df (patch)
tree4dd596a3a8a9025137d7723107d794ec9e329d06 /lib/irc/irc.ex
parentFinish moving things from IRC. to Nola., refs T77 (diff)
Rename IRC.{Message,Trigger} to Nola.{Message,Trigger}, refs T77.
Diffstat (limited to '')
-rw-r--r--lib/irc/irc.ex20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/irc/irc.ex b/lib/irc/irc.ex
index 93525e4..a1d97a2 100644
--- a/lib/irc/irc.ex
+++ b/lib/irc/irc.ex
@@ -1,25 +1,5 @@
defmodule IRC do
- defmodule Message do
- @derive {Poison.Encoder, except: [:replyfun]}
- defstruct [:id,
- :text,
- {:transport, :irc},
- :network,
- :account,
- :sender,
- :channel,
- :trigger,
- :replyfun,
- :at,
- {:meta, %{}}
- ]
- end
- defmodule Trigger do
- @derive Poison.Encoder
- defstruct [:type, :trigger, :args]
- end
-
def send_message_as(account, network, channel, text, force_puppet \\ false) do
connection = IRC.Connection.get_network(network)
if connection && (force_puppet || IRC.PuppetConnection.whereis(account, connection)) do