summaryrefslogtreecommitdiff
path: root/lib/irc/context.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/context.ex
parentSome fixes (diff)
Cont. wipmaster
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