[241] in BarnOwl Developers
[D-O-H] r417 - trunk/owl
daemon@ATHENA.MIT.EDU (nelhage@heretique.mit.edu)
Thu Oct 29 18:04:03 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: nelhage@heretique.mit.edu
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Sat, 28 Oct 2006 16:54:04 -0400 (EDT)
Author: nelhage
Date: 2006-10-28 16:54:04 -0400 (Sat, 28 Oct 2006)
New Revision: 417
Modified:
trunk/owl/commands.c
Log:
Exposing owl_function_error and owl_function_makemsg as commands
Modified: trunk/owl/commands.c
===================================================================
--- trunk/owl/commands.c 2006-10-28 20:41:36 UTC (rev 416)
+++ trunk/owl/commands.c 2006-10-28 20:54:04 UTC (rev 417)
@@ -726,7 +726,16 @@
"aimlogout\n",
""),
+ OWLCMD_ARGS("error", owl_command_error, OWL_CTX_ANY,
+ "Display an error message",
+ "error <message>",
+ ""),
+ OWLCMD_ARGS("message", owl_command_message, OWL_CTX_ANY,
+ "Display an informatative message",
+ "message <message>",
+ ""),
+
/****************************************************************/
/************************* EDIT-SPECIFIC ************************/
/****************************************************************/
@@ -2410,6 +2419,20 @@
return stylename;
}
+char *owl_command_error(int argc, char **argv, char *buff)
+{
+ buff = skiptokens(buff, 1);
+ owl_function_error(buff);
+ return NULL;
+}
+
+char *owl_command_message(int argc, char **argv, char *buff)
+{
+ buff = skiptokens(buff, 1);
+ owl_function_makemsg(buff);
+ return NULL;
+}
+
/*********************************************************************/
/************************** EDIT SPECIFIC ****************************/
/*********************************************************************/