! Copyright (C) 2009 Bruno Deferrari
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors concurrency.mailboxes kernel calendar io.sockets
-destructors arrays sequences io.encodings.8-bit.latin1 ;
+USING: accessors calendar concurrency.mailboxes
+io.encodings.utf8 io.sockets kernel ;
IN: irc.client.chats
CONSTANT: irc-port 6667 ! Default irc port
30 seconds >>reconnect-time
10 >>reconnect-attempts
V{ } clone >>exceptions
- [ <inet> latin1 <client> drop ] >>connect ;
+ [ <inet> utf8 <client> drop ] >>connect ;
SINGLETONS: irc-chat-end irc-end irc-disconnected irc-connected ;
! Copyright (C) 2008, 2010 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
-USING: fry irc.client irc.client.chats kernel namespaces
-sequences threads io.launcher io splitting
-make mason.common mason.git calendar math timers
-io.encodings.8-bit.latin1 debugger ;
+USING: calendar debugger fry io io.encodings.utf8 io.launcher
+irc.client irc.client.chats kernel make mason.common mason.git
+math sequences threads timers ;
IN: irc.gitbot
: bot-profile ( -- obj )
"--pretty=format:%h %an: %s" ,
".." glue ,
] { } make
- latin1 [ lines ] with-process-reader ;
+ utf8 [ lines ] with-process-reader ;
: updates ( from to -- lines )
git-log reverse