[483] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r607 - trunk/owl

daemon@ATHENA.MIT.EDU (asedeno@MIT.EDU)
Thu Oct 29 18:06:40 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: asedeno@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Mon, 12 Feb 2007 22:04:56 -0500 (EST)

Author: asedeno
Date: 2007-02-12 22:04:56 -0500 (Mon, 12 Feb 2007)
New Revision: 607

Modified:
   trunk/owl/functions.c
Log:
Allow for comments in the ~/.owl/startup file, for lines prefixed by a '#'



Modified: trunk/owl/functions.c
===================================================================
--- trunk/owl/functions.c	2007-02-13 03:04:13 UTC (rev 606)
+++ trunk/owl/functions.c	2007-02-13 03:04:56 UTC (rev 607)
@@ -3526,6 +3526,7 @@
     return;
   }
   while (fgets(buff, LINE, file)!=NULL) {
+    if (buff[0] == '#') continue;
     buff[strlen(buff)-1]='\0';
     owl_function_command(buff);
   }


home help back first fref pref prev next nref lref last post