Don't log default group ("1") messages

This commit is contained in:
Mike Belopuhov 2014-03-07 17:04:20 +01:00
parent a76f86650f
commit d06af04d84

View File

@ -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;