diff options
Diffstat (limited to 'lib/irc/irc.ex')
-rw-r--r-- | lib/irc/irc.ex | 20 |
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 |