diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-04-15 15:12:12 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-04-15 15:12:12 +0300 |
commit | fb0ecf33612d5de004817824096d950fac5b5cc3 (patch) | |
tree | f29c5855c6737aa11ef1f71dee92a998407df89f /include/mod_irc.hrl | |
parent | Add preliminary tests on ACL module and prepare clean-up / refactor (diff) | |
parent | Clean mod_mam.erl from DB specific code (diff) |
Merge branch 'move-db-code'
Diffstat (limited to 'include/mod_irc.hrl')
-rw-r--r-- | include/mod_irc.hrl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/mod_irc.hrl b/include/mod_irc.hrl new file mode 100644 index 000000000..b9696a88b --- /dev/null +++ b/include/mod_irc.hrl @@ -0,0 +1,15 @@ +-type conn_param() :: {binary(), binary(), inet:port_number(), binary()} | + {binary(), binary(), inet:port_number()} | + {binary(), binary()} | + {binary()}. + +-type irc_data() :: [{username, binary()} | {connections_params, [conn_param()]}]. + +-record(irc_connection, + {jid_server_host = {#jid{}, <<"">>, <<"">>} :: {jid(), binary(), binary()}, + pid = self() :: pid()}). + +-record(irc_custom, + {us_host = {{<<"">>, <<"">>}, <<"">>} :: {{binary(), binary()}, + binary()}, + data = [] :: irc_data()}). |