diff options
author | href <href@random.sh> | 2021-01-11 15:53:02 +0100 |
---|---|---|
committer | href <href@random.sh> | 2021-01-11 15:53:02 +0100 |
commit | 0f3f0e035b43eabd3f739c41964446962cf54208 (patch) | |
tree | 9279c54e100c92375c9d980e2031e0a153245025 /lib/irc/ts6.ex | |
parent | Some fixes (diff) |
Cont. wipmaster
Diffstat (limited to 'lib/irc/ts6.ex')
-rw-r--r-- | lib/irc/ts6.ex | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/irc/ts6.ex b/lib/irc/ts6.ex new file mode 100644 index 0000000..710f1a5 --- /dev/null +++ b/lib/irc/ts6.ex @@ -0,0 +1,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 |