From: arg@10ksloc.org Date: Thu, 20 Jul 2006 08:03:27 +0000 (+0200) Subject: updated man page X-Git-Url: https://git.armaanb.net/?p=sic.git;a=commitdiff_plain;h=37ca48e77061721bc0d2e133c088995c1548c337 updated man page --- diff --git a/sic.1 b/sic.1 index 872e73e..4230bbd 100644 --- 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 index 7199c14..3815a54 100644 --- 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: