Don't log default group ("1") messages
This commit is contained in:
parent
a76f86650f
commit
d06af04d84
4
logger.c
4
logger.c
@ -244,10 +244,14 @@ logger(char *group, char *nick, char *what)
|
||||
{
|
||||
struct icbd_logentry e;
|
||||
struct iovec iov[2];
|
||||
const char *defgrp = "1";
|
||||
|
||||
if (!dologging)
|
||||
return;
|
||||
|
||||
if (strcmp(group, defgrp) == 0)
|
||||
return;
|
||||
|
||||
strlcpy(e.group, group, ICB_MAXGRPLEN);
|
||||
strlcpy(e.nick, nick, ICB_MAXNICKLEN);
|
||||
e.length = strlen(what) + 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user