summaryrefslogtreecommitdiff
path: root/lib/irc/addressable.ex
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-01-11 15:53:02 +0100
committerhref <href@random.sh>2021-01-11 15:53:02 +0100
commit0f3f0e035b43eabd3f739c41964446962cf54208 (patch)
tree9279c54e100c92375c9d980e2031e0a153245025 /lib/irc/addressable.ex
parentSome fixes (diff)
Cont. wipmaster
Diffstat (limited to 'lib/irc/addressable.ex')
-rw-r--r--lib/irc/addressable.ex12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/irc/addressable.ex b/lib/irc/addressable.ex
new file mode 100644
index 0000000..02993b9
--- /dev/null
+++ b/lib/irc/addressable.ex
@@ -0,0 +1,12 @@
+defprotocol Irc.Addressable do
+ @moduledoc """
+ Protocol for accessing a `nick`, `user`, `host` and `owner` pid and module from any compatible data structure.
+ """
+
+ def nick(t)
+ def user(t)
+ def host(t)
+ def owner(t)
+ def owner_module(t)
+
+end