aboutsummaryrefslogtreecommitdiffstats
path: root/lib/misc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-08-07 20:39:01 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-08-07 20:39:01 +0100
commit7b87539aedd967884d4e4eed75d1052a233720eb (patch)
tree404b5801b795c6a0c416f4fce43b1cda51444c9a /lib/misc.c
parentdaae10fbfe16bac26f74af91faf253d377f1b166 (diff)
Add commands to the Twitter module, starting with undo (which deletes
either your most recent tweet, or a specific id (pass it as an argument)).
Diffstat (limited to 'lib/misc.c')
-rw-r--r--lib/misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/misc.c b/lib/misc.c
index 26d22ae0..fda19c19 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -651,6 +651,9 @@ int md5_verify_password( char *password, char *hash )
return ret;
}
+/* Split commands (root-style, *not* IRC-style). Handles "quoting of"
+ white\ space in 'various ways'. Returns a NULL-terminated static
+ char** so watch out with nested use! Definitely not thread-safe. */
char **split_command_parts( char *command )
{
static char *cmd[IRC_MAX_ARGS+1];