8 Commits
1.1 ... 1.2

6 changed files with 37 additions and 29 deletions

View File

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

View File

@ -1,6 +1,6 @@
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>
© 2007-2009 Kris Maglione <maglione.k@gmail.com>
© 2005 Nico Golde <nico at ngolde dot de>

View File

@ -17,7 +17,7 @@ options:
@echo CC $<
@${CC} -c ${CFLAGS} $<
${OBJ}: config.mk
${OBJ}: config.mk util.c
sic: ${OBJ}
@echo CC -o $@
@ -30,7 +30,7 @@ clean:
dist: clean
@echo creating dist tarball
@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}
@gzip sic-${VERSION}.tar
@rm -rf sic-${VERSION}

View File

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

53
sic.1
View File

@ -3,45 +3,52 @@
sic \- simple irc client
.SH SYNOPSIS
.B sic
.RB [ \-h " <host>"]
.RB [ \-p " <port>"]
.RB [ \-n " <nick>"]
.RB [ \-k " <keyword>"]
.RB [ \-h
.IR host ]
.RB [ \-p
.IR port ]
.RB [ \-n
.IR nick ]
.RB [ \-k
.IR pass ]
.RB [ \-v ]
.SH DESCRIPTION
.B sic
is an extremly fast, small and simple irc client. It reads commands from
standard input and prints all server output to standard output. It multiplexes
also all channel traffic into one output, that you don't have to switch
different channel buffers, that's actually a feature.
is an extremely fast, small and simple irc client. It reads commands from
standard input and prints all server output to standard output. It also
multiplexes all channel traffic into one output. That way you don't have to
switch different channel buffers. So that's actually a feature.
.SH OPTIONS
.TP
.B \-h <host>
Overrides the default host (irc6.oftc.net)
.BI \-h " host"
Overrides the default host (irc.oftc.net)
.TP
.B \-p <port>
.BI \-p " port"
Overrides the default port (6667)
.TP
.B \-n <nickname>
.BI \-n " nick"
Override the default nick ($USER)
.TP
.B \-k <keyword>
Specifies the keyword to authenticate your nick on the host
.BI \-k " pass"
Specifies the PASS connection password
.TP
.BI \-v
Prints version information to standard output, then exits.
.B \-v
Prints version information to stderr, then exits
.SH COMMANDS
.TP
.B :j #channel
.BI :j " #channel"
Join a channel
.TP
.B :l #channel
.BI :l " #channel"
Leave a channel
.TP
.B :m #channel/user msg
Write a message to #channel/user
.BI :m " #channel/user message"
Send a message to channel or user
.TP
.B :s #channel/user
Set default channel/user
.BI :s " #channel/user"
Set default channel or user
.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>
static char *host = "irc.oftc.net";
static char *port = "ircd";
static char *port = "6667";
static char *password;
static char nick[32];
static char bufin[4096];
@ -157,7 +157,7 @@ main(int argc, char *argv[]) {
if(++i < argc) password = argv[i];
break;
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:
eprint("usage: sic [-h host] [-p port] [-n nick] [-k keyword] [-v]\n");
}