Skip to content

Commit

Permalink
Add forgotten logging of certain outgoing sharecmds
Browse files Browse the repository at this point in the history
Found by: Cizzle
Patch by: Cizzle

Certain commands like +bot did not log the outgoing share commands.
  • Loading branch information
Cizzle authored and vanosg committed Aug 20, 2018
1 parent 545fe62 commit 8153bbd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mod/share.mod/share.c
Expand Up @@ -1409,8 +1409,10 @@ static void shareout_mod EGG_VARARGS_DEF(struct chanset_t *, arg1)
fr.match = (FR_CHAN | FR_BOT);
get_user_flagrec(dcc[i].user, &fr, chan->dname);
}
if (!chan || bot_chan(fr) || bot_global(fr))
if (!chan || bot_chan(fr) || bot_global(fr)) {
putlog(LOG_BOTSHROUT, "*", "{m->%s} %s", dcc[i].nick, s + 2);
tputs(dcc[i].sock, s, l + 2);
}
}
q_resync(s, chan);
}
Expand Down Expand Up @@ -1441,8 +1443,10 @@ static void shareout_but EGG_VARARGS_DEF(struct chanset_t *, arg1)
fr.match = (FR_CHAN | FR_BOT);
get_user_flagrec(dcc[i].user, &fr, chan->dname);
}
if (!chan || bot_chan(fr) || bot_global(fr))
if (!chan || bot_chan(fr) || bot_global(fr)) {
putlog(LOG_BOTSHROUT, "*", "{m->%s} %s", dcc[i].nick, s + 2);
tputs(dcc[i].sock, s, l + 2);
}
}
q_resync(s, chan);
va_end(va);
Expand Down

0 comments on commit 8153bbd

Please sign in to comment.