Ircxd.StandardReply (ircxd v1.1.0)

Copy Markdown View Source

Parser helpers for IRCv3 standard replies.

Summary

Functions

Parses an IRCv3 FAIL, WARN, or NOTE reply.

Functions

parse(type, arg2)

@spec parse(String.t(), [String.t()]) ::
  {:ok,
   %{
     type: :fail | :warn | :note,
     command: String.t(),
     code: String.t(),
     context: [String.t()],
     description: String.t()
   }}
  | {:error, atom()}

Parses an IRCv3 FAIL, WARN, or NOTE reply.