Skip to content

Commit cc0c97d

Browse files
committed
fix initial line single char indent issue
1 parent cfee82d commit cc0c97d

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

README

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ INSTALLATION
3737
Building and installing from source:
3838

3939
git clone https://github.com/mcpcpc/kirc.git
40-
tcd kirc
40+
cd kirc
4141
make
4242
make install
4343

@@ -50,17 +50,19 @@ Building and installing using KISS Linux Community repository [2]:
5050
USAGE
5151
-----
5252

53-
usage: kirc [-s hostname] [-p port] [-c channel] [-n nick] [-k password] [-w
54-
columns] [-W columns] [-v|V]
53+
usage: kirc [-s hostname] [-p port] [-c channel] [-n nick] [-r real name]
54+
[-u username] [-k password] [-w columns] [-W columns] [-v|V]
5555
-s server address (default: 'irc.freenode.org')
5656
-p server port (default: '6667')
5757
-c channel name (default: '#kisslinux')
58-
-n user nickname
59-
-k user password
58+
-n nickname (required)
59+
-u server username (optional)
60+
-k server password (optional)
61+
-r real name (optional)
6062
-v version information
6163
-V verbose output (e.g. raw stream)
6264
-w maximum width of the printed left column (default: '10')
63-
-W maximum width of the entire printed stream (default '82')
65+
-W maximum width of the entire printed stream (default '80')
6466

6567

6668
CUSTOMIZATION
@@ -76,6 +78,8 @@ CUSTOMIZATION
7678
after the nick in the left column). Therefore, assuming that the default
7779
values are being used, an IRC message could never exceed 80 printed characters
7880
before word wrapping.
81+
- In order to connect to an IRC server, a nickname must be specified. Server
82+
username (-u), password (-k) and real name (-r) are optional.
7983

8084

8185
REFERENCES

kirc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ printw(const char *format, ...) {
9292
for(tok = strtok(&line[i], " "); tok != NULL; tok = strtok(NULL, " ")) {
9393
len = strlen(tok);
9494
if ((len + 1) > s) {
95-
printf("\n%*.s%s ", gutl + 2, "", tok);
95+
printf("\n%*.s%s", gutl + 2, "", tok);
9696
s = cmax - (gutl + 2 + len);
9797
}
9898
else {
99-
printf("%s ", tok);
99+
printf(" %s", tok);
100100
s = s - (len + 1);
101101
}
102102
}
@@ -191,7 +191,7 @@ main(int argc, char **argv) {
191191
if (u[0] != ':') raw("%-*.*s\r\n", i, i, u);
192192
}
193193
}
194-
printf("%*s press <RETURN> key to exit", gutl, " ");
194+
printf("%*s<<press RETURN key to exit>>", gutl+2, "");
195195
}
196196
else {
197197
char usrin[BUFF], v1[BUFF-20], v2[20], c1;

0 commit comments

Comments
 (0)