summaryrefslogtreecommitdiff
path: root/lib/irc/context.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irc/context.ex')
-rw-r--r--lib/irc/context.ex16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/irc/context.ex b/lib/irc/context.ex
new file mode 100644
index 0000000..017ea5f
--- /dev/null
+++ b/lib/irc/context.ex
@@ -0,0 +1,16 @@
+defprotocol Irc.Context do
+ @doc """
+ Provides a global IRC context.
+ """
+
+ @spec capab?(t(), capability :: String.t()) :: boolean
+ def capab?(t, capability)
+
+ @spec capabs(t()) :: [String.t()]
+ def capabs(t)
+
+ def pid(t)
+
+ def module(t)
+
+end