Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mullwar committed Apr 4, 2018
2 parents 8e7584c + 0e8376a commit 67f1055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ignoreMessagesBeforeStart.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {

bot.mod('message', (data) => {
const { date, from } = data.message;
if (date * 1000 < startDate[from.id] || date * 1000 < startDate.main_bot) {
if (from && (date * 1000 < startDate[from.id] || date * 1000 < startDate.main_bot)) {
data.message = {};
}

Expand Down

0 comments on commit 67f1055

Please sign in to comment.