]> gitweb.factorcode.org Git - factor.git/commitdiff
irc.logbot: Use make to build timestamped string
authorBruno Deferrari <utizoc@gmail.com>
Thu, 16 Apr 2009 20:16:24 +0000 (17:16 -0300)
committerBruno Deferrari <utizoc@gmail.com>
Thu, 16 Apr 2009 20:16:24 +0000 (17:16 -0300)
extra/irc/logbot/logbot.factor

index a389304b1476c27ecbb257a9996563af5c1bf2d1..2bf88568f8a4a614bf8074b5248dd9a3645c34bd 100644 (file)
@@ -16,7 +16,7 @@ SYMBOL: current-stream
     "irc.freenode.org" 6667 "flogger" f <irc-profile> ;
 
 : add-timestamp ( string timestamp -- string )
-    timestamp>hms "[" prepend "] " append prepend ;
+    timestamp>hms [ "[" % % "] " % % ] "" make ;
 
 : timestamp-path ( timestamp -- path )
     timestamp>ymd ".log" append log-directory prepend-path ;