summary refs log tree commit diff
path: root/command.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-08 21:44:50 -0500
committerJune McEnroe <june@causal.agency>2020-02-08 21:44:50 -0500
commit3e6868414811be8902e6973c78ef2010b26a9e08 (patch)
treedf68dcfb29b6fb0c68b3d96a599a4051097f9fe9 /command.c
parentAllow overriding the /open utility (diff)
downloadcatgirl-3e6868414811be8902e6973c78ef2010b26a9e08.tar.gz
catgirl-3e6868414811be8902e6973c78ef2010b26a9e08.zip
Add /copy
Diffstat (limited to '')
-rw-r--r--command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/command.c b/command.c
index 4100928..feb52b7 100644
--- a/command.c
+++ b/command.c
@@ -154,11 +154,16 @@ static void commandOpen(size_t id, char *params) {
 	}
 }
 
+static void commandCopy(size_t id, char *params) {
+	urlCopyMatch(id, params);
+}
+
 static const struct Handler {
 	const char *cmd;
 	Command *fn;
 } Commands[] = {
 	{ "/close", commandClose },
+	{ "/copy", commandCopy },
 	{ "/debug", commandDebug },
 	{ "/join", commandJoin },
 	{ "/me", commandMe },