From 8153bbd18a119716b8a8807d6c0c686d5dee2a59 Mon Sep 17 00:00:00 2001 From: Cizzle Date: Mon, 20 Aug 2018 06:14:56 +0200 Subject: [PATCH] Add forgotten logging of certain outgoing sharecmds Found by: Cizzle Patch by: Cizzle Certain commands like +bot did not log the outgoing share commands. --- src/mod/share.mod/share.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mod/share.mod/share.c b/src/mod/share.mod/share.c index ec7a97c2d..1cd2f2bed 100644 --- a/src/mod/share.mod/share.c +++ b/src/mod/share.mod/share.c @@ -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); } @@ -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);