3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

fix object object nonsense

This commit is contained in:
reality 2016-04-12 19:59:08 +00:00
parent face69d31a
commit 92c045d8c7

View File

@ -79,7 +79,7 @@ var kick = function(dbot) {
'quietee': quietee, 'quietee': quietee,
'minutes': duration 'minutes': duration
})); }));
dbot.api.report.notify('quiet', server, quieter, channel, dbot.api.report.notify('quiet', server, quieter.primaryNick, channel,
dbot.t('tquiet_notify', { dbot.t('tquiet_notify', {
'minutes': duration, 'minutes': duration,
'quieter': quieter.primaryNick, 'quieter': quieter.primaryNick,
@ -89,9 +89,9 @@ var kick = function(dbot) {
); );
} else { } else {
callback(dbot.t('quieted', { 'quietee': quietee })); callback(dbot.t('quieted', { 'quietee': quietee }));
dbot.api.report.notify('quiet', server, quieter, channel, dbot.api.report.notify('quiet', server, quieter.primaryNick, channel,
dbot.t('quiet_notify', { dbot.t('quiet_notify', {
'quieter': quieter, 'quieter': quieter.primaryNick,
'quietee': quietee, 'quietee': quietee,
'reason': reason 'reason': reason
}), false, quietee); }), false, quietee);