summaryrefslogtreecommitdiff
path: root/lib/irc/addressable.ex
diff options
context:
space:
mode:
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