sic

personal fork with prompts, tmux splits
git clone git://git.garbash.com/alex/sic
Log | Files | Refs | README | LICENSE

commit 0d9d4548b25416f0ffb450e9ac6c5e54ab6f8bc1
parent ff4072f5e43b677ad68ea9de7a5d210fed60b144
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Tue, 18 Jul 2006 08:38:28 +0200

finished

Diffstat:
Msic.c | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/sic.c b/sic.c @@ -19,10 +19,10 @@ enum { Tnick, Tuser, Tcmd, Tchan, Targ, Ttext, Tlast }; /* CUSTOMIZE */ -static const char *ping = "PING irc.freenode.net\r\n"; -static const char *host = "irc.freenode.net"; +static const char *ping = "PING irc.oftc.net\r\n"; +static const char *host = "irc.oftc.net"; static const int port = 6667; -static const char *nick = "garbeam"; +static const char *nick = "garbeam2"; static const char *fullname = "Anselm R. Garbe"; static const char *password = NULL; @@ -51,8 +51,8 @@ pout(char *channel, char *msg) static char timestr[18]; time_t t = time(0); - strftime(timestr, sizeof(timestr), "%F %R", localtime(&t)); - fprintf(stdout, "%s: %s %s\n", channel, timestr, msg); + strftime(timestr, sizeof(timestr), "%a %R", localtime(&t)); + fprintf(stdout, "%s:\t%s\t%s\n", channel, timestr, msg); } static void @@ -286,6 +286,7 @@ main(int argc, char *argv[]) nick, nick, host, fullname ? fullname : nick); write(srv, bufout, strlen(bufout)); + setbuf(stdout, NULL); /* unbuffered stdout */ for(;;) { FD_ZERO(&rd); FD_SET(0, &rd);