summaryrefslogtreecommitdiff
path: root/lib/irc/ts6.ex
blob: 710f1a5c1a72a6c8ba870e3eaee100ed153bc9fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
defmodule Irc.TS6 do
  @moduledoc """
  TS6 protocol. Not implemented yet, only basic data structures are defined.
  """

  defmodule Server do
    defstruct [
      :name,
      :sid,
      :description,
      {:depth, 1},
      {:users, []},
      {:servers, []},
      :parent_sid
    ]
  end

  defmodule User do
    defstruct [
      :uid,
      :name,
      :depth,
      :ts,
      :umode,
      :username,
      :hostname,
      :ip,
      :realhost,
      :account,
      :realname,
      :sid
    ]
  end

end