summaryrefslogtreecommitdiff
path: root/lib/irc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irc')
-rw-r--r--lib/irc/account.ex1
-rw-r--r--lib/irc/irc.ex1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/irc/account.ex b/lib/irc/account.ex
index c835d55..56019df 100644
--- a/lib/irc/account.ex
+++ b/lib/irc/account.ex
@@ -18,6 +18,7 @@ defmodule IRC.Account do
# FIXME: Ensure uniqueness of name?
+ @derive {Poison.Encoder, except: [:token]}
defstruct [:id, :name, :token]
@type t :: %__MODULE__{id: id(), name: String.t()}
@type id :: String.t()
diff --git a/lib/irc/irc.ex b/lib/irc/irc.ex
index e063244..78b0611 100644
--- a/lib/irc/irc.ex
+++ b/lib/irc/irc.ex
@@ -1,5 +1,6 @@
defmodule IRC do
+ @derive {Poison.Encoder, except: [:replyfun]}
defmodule Message do
defstruct [:text,
{:transport, :irc},