diff options
author | Jordan Bracco <href@random.sh> | 2022-12-11 01:09:51 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-11 02:03:36 +0000 |
commit | 320f70d6450f9dcac44c9388c087e5d510eda5f8 (patch) | |
tree | 678c221f8638c5aaaf9c01b7b1b3b62c81d76c9a /lib/irc | |
parent | fix: alcoolog: time fixes (diff) |
feat: derive Poison for IRC.{Account, Message}
Diffstat (limited to 'lib/irc')
-rw-r--r-- | lib/irc/account.ex | 1 | ||||
-rw-r--r-- | lib/irc/irc.ex | 1 |
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}, |