From b60dbf01908654320706befc0e6f8550837d7cb5 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Sat, 23 Jul 2005 22:27:29 +0000 Subject: [PATCH] releasing 0.76 --- examples/factorbot.factor | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/factorbot.factor b/examples/factorbot.factor index 4fa260c724..b699c036f3 100644 --- a/examples/factorbot.factor +++ b/examples/factorbot.factor @@ -33,7 +33,7 @@ GENERIC: handle-irc PREDICATE: string privmsg "PRIVMSG" swap subseq? ; M: string handle-irc ( line -- ) - drop ( print flush ) ; + drop ; : parse-privmsg ( line -- text ) ":" ?head drop @@ -72,7 +72,7 @@ M: privmsg handle-irc ( line -- ) : irc-loop ( -- ) irc-stream get stream-readln - [ handle-irc irc-loop ] when* ; + [ dup print flush handle-irc irc-loop ] when* ; : factorbot "irc.freenode.net" connect @@ -90,10 +90,8 @@ IN: factorbot-commands ] [ nip [ dup word-string " -- " rot word-url append3 respond - ] each-with + ] each ] ifte ; : quit ( text -- ) - drop speaker "slava" = [ disconnect ] when ; - -factorbot + drop speaker get "slava" = [ disconnect ] when ;