sic

simple irc client
git clone git://git.suckless.org/sic
Log | Files | Refs | README | LICENSE

commit 37ca48e77061721bc0d2e133c088995c1548c337
parent 1871cf41b32fb5d7a750a2de250d19d21e00cec8
Author: arg@10ksloc.org <unknown>
Date:   Thu, 20 Jul 2006 10:03:27 +0200

updated man page

Diffstat:
Msic.1 | 26++++++++++++++++++++++++++
Msic.c | 5+++--
2 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/sic.1 b/sic.1 @@ -3,6 +3,17 @@ sic \- simple irc client .SH SYNOPSIS .B sic +.RB [ \-s +.IR server ] +.RB [ \-p +.IR port ] +.RB [ \-n +.IR nick ] +.RB [ \-k +.IR keyword ] +.RB [ \-f +.IR fullname ] +.RB \-v .RB [ \-v ] .SH DESCRIPTION .B sic @@ -12,6 +23,21 @@ also all channel traffic into one output, that you don't have to switch different channel buffers, that's actually a feature. .SH OPTIONS .TP +.BI \-s " server" +Overrides the default server (irc.oftc.net) +.TP +.BI \-p " port" +Overrides the default port (6667) +.TP +.BI \-n " nickname" +Override the default nick ($USER) +.TP +.BI \-k " keyword" +Specifies the keyword to authenticate your nick on the server +.TP +.BI \-f " fullname" +Specify the real name (default is $USER) +.TP .BI \-v Prints version information to standard output, then exits. .SH COMMANDS diff --git a/sic.c b/sic.c @@ -21,8 +21,8 @@ enum { Tnick, Tuser, Tcmd, Tchan, Targ, Ttext, Tlast }; /* CUSTOMIZE */ static char *server = "irc.oftc.net"; static int port = 6667; -static char *nick = "arg"; -static char *fullname = "Anselm R. Garbe"; +static char *nick = NULL; +static char *fullname = NULL; static char *password = NULL; static char bufin[MAXMSG], bufout[MAXMSG]; @@ -242,6 +242,7 @@ main(int argc, char *argv[]) char ping[256]; fd_set rd; + nick = fullname = getenv("USER"); for(i = 1; (i < argc) && (argv[i][0] == '-'); i++) { switch (argv[i][1]) { default: