8 Commits
1.1 ... 1.2

Author SHA1 Message Date
Anselm R Garbe
fe525b3209 prepared a new release 2013-05-05 17:42:52 +02:00
Connor Lane Smith
a28f8b49c8 a few corrections to manpage 2012-04-20 00:15:32 +01:00
anselm@garbe.us
bade9ccb6c reversed the -u switch 2012-02-05 16:47:38 +01:00
garbeam@gmail.com
2831ca36c3 applied Quentin Carbonneaux's user patch 2012-01-22 18:27:17 +01:00
Anselm R Garbe
3b5d848cd4 applied Jeroen's manpage patch, thanks! 2011-04-08 12:51:16 +00:00
Anselm R Garbe
efb5435694 applied Dimitris patches, thanks 2011-03-06 07:37:21 +00:00
anselm@garbe.us
fdaf2adbc9 fixed issue reported by serge on irc, util.c was excluded in dist target 2010-08-06 09:52:12 +01:00
Kris Maglione
a4ba8e3b08 Added tag 1.1 for changeset d6140e3685b8 2010-05-25 12:03:25 -04:00
6 changed files with 37 additions and 29 deletions

View File

@@ -8,3 +8,4 @@ d7923d9e717c1c6f1ed3b17ec90bfdd7e7bfcca0 0.6
07fb3efaa2e9ed18c6c16f0ddd8576cb66fec9c6 0.8 07fb3efaa2e9ed18c6c16f0ddd8576cb66fec9c6 0.8
96eb1bfede5b72fcee3f515d3113d814f7e87108 0.9 96eb1bfede5b72fcee3f515d3113d814f7e87108 0.9
b8794f3ed15e34b24ff9fb11c93a4405d0f91433 1.0 b8794f3ed15e34b24ff9fb11c93a4405d0f91433 1.0
d6140e3685b89c609a731471eba6787f7869aa59 1.1

View File

@@ -1,6 +1,6 @@
MIT/X Consortium License MIT/X Consortium License
© 2005-2009 Anselm R Garbe <anselm@garbe.us> © 2005-2013 Anselm R Garbe <anselm@garbe.us>
© 2008-2009 Jeroen Schot <schot@a-eskwadraat.nl> © 2008-2009 Jeroen Schot <schot@a-eskwadraat.nl>
© 2007-2009 Kris Maglione <maglione.k@gmail.com> © 2007-2009 Kris Maglione <maglione.k@gmail.com>
© 2005 Nico Golde <nico at ngolde dot de> © 2005 Nico Golde <nico at ngolde dot de>

View File

@@ -17,7 +17,7 @@ options:
@echo CC $< @echo CC $<
@${CC} -c ${CFLAGS} $< @${CC} -c ${CFLAGS} $<
${OBJ}: config.mk ${OBJ}: config.mk util.c
sic: ${OBJ} sic: ${OBJ}
@echo CC -o $@ @echo CC -o $@
@@ -30,7 +30,7 @@ clean:
dist: clean dist: clean
@echo creating dist tarball @echo creating dist tarball
@mkdir -p sic-${VERSION} @mkdir -p sic-${VERSION}
@cp -R LICENSE Makefile README config.mk sic.1 ${SRC} sic-${VERSION} @cp -R LICENSE Makefile README config.mk sic.1 sic.c util.c sic-${VERSION}
@tar -cf sic-${VERSION}.tar sic-${VERSION} @tar -cf sic-${VERSION}.tar sic-${VERSION}
@gzip sic-${VERSION}.tar @gzip sic-${VERSION}.tar
@rm -rf sic-${VERSION} @rm -rf sic-${VERSION}

View File

@@ -1,5 +1,5 @@
# sic version # sic version
VERSION = 1.1 VERSION = 1.2
# Customize below to fit your system # Customize below to fit your system

53
sic.1
View File

@@ -3,45 +3,52 @@
sic \- simple irc client sic \- simple irc client
.SH SYNOPSIS .SH SYNOPSIS
.B sic .B sic
.RB [ \-h " <host>"] .RB [ \-h
.RB [ \-p " <port>"] .IR host ]
.RB [ \-n " <nick>"] .RB [ \-p
.RB [ \-k " <keyword>"] .IR port ]
.RB [ \-n
.IR nick ]
.RB [ \-k
.IR pass ]
.RB [ \-v ] .RB [ \-v ]
.SH DESCRIPTION .SH DESCRIPTION
.B sic .B sic
is an extremly fast, small and simple irc client. It reads commands from is an extremely fast, small and simple irc client. It reads commands from
standard input and prints all server output to standard output. It multiplexes standard input and prints all server output to standard output. It also
also all channel traffic into one output, that you don't have to switch multiplexes all channel traffic into one output. That way you don't have to
different channel buffers, that's actually a feature. switch different channel buffers. So that's actually a feature.
.SH OPTIONS .SH OPTIONS
.TP .TP
.B \-h <host> .BI \-h " host"
Overrides the default host (irc6.oftc.net) Overrides the default host (irc.oftc.net)
.TP .TP
.B \-p <port> .BI \-p " port"
Overrides the default port (6667) Overrides the default port (6667)
.TP .TP
.B \-n <nickname> .BI \-n " nick"
Override the default nick ($USER) Override the default nick ($USER)
.TP .TP
.B \-k <keyword> .BI \-k " pass"
Specifies the keyword to authenticate your nick on the host Specifies the PASS connection password
.TP .TP
.BI \-v .B \-v
Prints version information to standard output, then exits. Prints version information to stderr, then exits
.SH COMMANDS .SH COMMANDS
.TP .TP
.B :j #channel .BI :j " #channel"
Join a channel Join a channel
.TP .TP
.B :l #channel .BI :l " #channel"
Leave a channel Leave a channel
.TP .TP
.B :m #channel/user msg .BI :m " #channel/user message"
Write a message to #channel/user Send a message to channel or user
.TP .TP
.B :s #channel/user .BI :s " #channel/user"
Set default channel/user Set default channel or user
.TP .TP
Everything which is not a command is simply send the server. .BI : command
Any line beginning with
.B :
is sent as a command

4
sic.c
View File

@@ -9,7 +9,7 @@
#include <unistd.h> #include <unistd.h>
static char *host = "irc.oftc.net"; static char *host = "irc.oftc.net";
static char *port = "ircd"; static char *port = "6667";
static char *password; static char *password;
static char nick[32]; static char nick[32];
static char bufin[4096]; static char bufin[4096];
@@ -157,7 +157,7 @@ main(int argc, char *argv[]) {
if(++i < argc) password = argv[i]; if(++i < argc) password = argv[i];
break; break;
case 'v': case 'v':
eprint("sic-"VERSION", © 2005-2009 Kris Maglione, Anselm R. Garbe, Nico Golde\n"); eprint("sic-"VERSION", © 2005-2012 Kris Maglione, Anselm R. Garbe, Nico Golde\n");
default: default:
eprint("usage: sic [-h host] [-p port] [-n nick] [-k keyword] [-v]\n"); eprint("usage: sic [-h host] [-p port] [-n nick] [-k keyword] [-v]\n");
} }