]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - command.c
server: Add com_tasks().
[paraslash.git] / command.c
index 09f00f2f23d7479c5a567fa8fe85a357088b1ff0..6880cb4091a008b7063f5d7bed43f1ceda8ee5ac 100644 (file)
--- a/command.c
+++ b/command.c
@@ -759,6 +759,16 @@ out:
        return ret;
 }
 
+static int com_tasks(struct command_context *cc)
+{
+       char *tl = server_get_tasks();
+       int ret = 1;
+
+       if (tl)
+               ret = send_sb(&cc->scc, tl, strlen(tl), SBD_OUTPUT, false);
+       return ret;
+}
+
 /*
  * check if perms are sufficient to exec a command having perms cmd_perms.
  * Returns 0 if perms are sufficient, -E_PERM otherwise.