aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README16
-rw-r--r--kirc.c6
2 files changed, 13 insertions, 9 deletions
diff --git a/README b/README
index 4abaab3..d5c2a50 100644
--- a/README
+++ b/README
@@ -37,7 +37,7 @@ INSTALLATION
Building and installing from source:
git clone https://github.com/mcpcpc/kirc.git
- tcd kirc
+ cd kirc
make
make install
@@ -50,17 +50,19 @@ Building and installing using KISS Linux Community repository [2]:
USAGE
-----
-usage: kirc [-s hostname] [-p port] [-c channel] [-n nick] [-k password] [-w
-columns] [-W columns] [-v|V]
+usage: kirc [-s hostname] [-p port] [-c channel] [-n nick] [-r real name]
+[-u username] [-k password] [-w columns] [-W columns] [-v|V]
-s server address (default: 'irc.freenode.org')
-p server port (default: '6667')
-c channel name (default: '#kisslinux')
--n user nickname
--k user password
+-n nickname (required)
+-u server username (optional)
+-k server password (optional)
+-r real name (optional)
-v version information
-V verbose output (e.g. raw stream)
-w maximum width of the printed left column (default: '10')
--W maximum width of the entire printed stream (default '82')
+-W maximum width of the entire printed stream (default '80')
CUSTOMIZATION
@@ -76,6 +78,8 @@ CUSTOMIZATION
after the nick in the left column). Therefore, assuming that the default
values are being used, an IRC message could never exceed 80 printed characters
before word wrapping.
+- In order to connect to an IRC server, a nickname must be specified. Server
+ username (-u), password (-k) and real name (-r) are optional.
REFERENCES
diff --git a/kirc.c b/kirc.c
index 25988ba..f1bdf6f 100644
--- a/kirc.c
+++ b/kirc.c
@@ -92,11 +92,11 @@ printw(const char *format, ...) {
for(tok = strtok(&line[i], " "); tok != NULL; tok = strtok(NULL, " ")) {
len = strlen(tok);
if ((len + 1) > s) {
- printf("\n%*.s%s ", gutl + 2, "", tok);
+ printf("\n%*.s%s", gutl + 2, "", tok);
s = cmax - (gutl + 2 + len);
}
else {
- printf("%s ", tok);
+ printf(" %s", tok);
s = s - (len + 1);
}
}
@@ -191,7 +191,7 @@ main(int argc, char **argv) {
if (u[0] != ':') raw("%-*.*s\r\n", i, i, u);
}
}
- printf("%*s press <RETURN> key to exit", gutl, " ");
+ printf("%*s<<press RETURN key to exit>>", gutl+2, "");
}
else {
char usrin[BUFF], v1[BUFF-20], v2[20], c1;