[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#226711: [PATCH] fix off-by-one-line behavior in example bot after saving



Package: megahal
Version: 9.0.3-7

When the example bot saves, megahal says something random.  That
appears to stick in the buffer and the bot begins responding not
to the current query but the query immediately before.

This patch fixes that problem.

-- 
Matt Behrens <matt@zigg.com> <URL:http://zigg.com/>

--- /usr/share/doc/megahal/examples/Hal.pm      2000-09-01 13:36:58.000000000 -0400
+++ Hal.pm      2004-01-07 16:04:26.000000000 -0500
@@ -86,7 +86,7 @@
 # Save brain.
 sub save {
        $wselect->can_write();
-       syswrite(WRITE,"#save\n\n",8);
+       syswrite(WRITE,"#quiet\n\n#save\n\n#quiet\n\n");
 }
  
 # Set a socket into nonblocking mode.

Attachment: pgpGY5tLbNIo9.pgp
Description: PGP signature


Reply to: