Skip to content

Commit 9370902

Browse files
authored
0.2.2 (#94)
1 parent 124565c commit 9370902

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

kirc.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <termios.h>
1414
#include <sys/ioctl.h>
1515

16-
#define VERSION "0.2.1" /* version */
16+
#define VERSION "0.2.2" /* version */
1717
#define AUTHORS "Michael Czigler" /* authors */
1818
#define MSG_MAX 512 /* max message length */
1919
#define CHA_MAX 200 /* max channel length */
@@ -554,8 +554,10 @@ static void paramPrintChan(struct Param * p) {
554554
if (strnlen(p->nickname, MSG_MAX) <= p->nicklen)
555555
s = p->nicklen - strnlen(p->nickname, MSG_MAX);
556556
printf("%*s\x1b[33;1m%-.*s\x1b[0m ", s, "", p->nicklen, p->nickname);
557-
if (p->params)
558-
printf(p->params);
557+
if (p->params) {
558+
printf(p->params);
559+
p->offset += strnlen(p->params, CHA_MAX);
560+
}
559561
}
560562

561563
static void rawParser(char * string) {

0 commit comments

Comments
 (0)