summaryrefslogtreecommitdiff
path: root/lib/irc/account.ex
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-11 01:09:51 +0000
committerJordan Bracco <href@random.sh>2022-12-11 02:03:36 +0000
commit320f70d6450f9dcac44c9388c087e5d510eda5f8 (patch)
tree678c221f8638c5aaaf9c01b7b1b3b62c81d76c9a /lib/irc/account.ex
parentfix: alcoolog: time fixes (diff)
feat: derive Poison for IRC.{Account, Message}
Diffstat (limited to '')
-rw-r--r--lib/irc/account.ex1
1 files changed, 1 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()