Skip to content

Commit

Permalink
0.2.2 (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpcpc authored Nov 22, 2020
1 parent 124565c commit 9370902
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kirc.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <termios.h>
#include <sys/ioctl.h>

#define VERSION "0.2.1" /* version */
#define VERSION "0.2.2" /* version */
#define AUTHORS "Michael Czigler" /* authors */
#define MSG_MAX 512 /* max message length */
#define CHA_MAX 200 /* max channel length */
Expand Down Expand Up @@ -554,8 +554,10 @@ static void paramPrintChan(struct Param * p) {
if (strnlen(p->nickname, MSG_MAX) <= p->nicklen)
s = p->nicklen - strnlen(p->nickname, MSG_MAX);
printf("%*s\x1b[33;1m%-.*s\x1b[0m ", s, "", p->nicklen, p->nickname);
if (p->params)
printf(p->params);
if (p->params) {
printf(p->params);
p->offset += strnlen(p->params, CHA_MAX);
}
}

static void rawParser(char * string) {
Expand Down

0 comments on commit 9370902

Please sign in to comment.