Comparing version 1.4.1 to 1.4.2
@@ -514,3 +514,3 @@ var api = require("./api"); | ||
case "not_hosting": | ||
this.log.info(basicLog); | ||
this.log.info(basicLog); | ||
this.emits(["notice", "_promiseUnhost"], noticeAndMsgid); | ||
@@ -732,10 +732,8 @@ break; | ||
var reason = _.unescapeIRC(_.get(message.tags["ban-reason"], "")) || null; | ||
if (_.isNull(duration)) { | ||
this.log.info(`[${channel}] ${msg} has been banned. Reason: ${reason || "n/a"}`); | ||
this.emit("ban", channel, msg, reason); | ||
this.log.info(`[${channel}] ${msg} has been banned.`); | ||
this.emit("ban", channel, msg, null, message.tags); | ||
} else { | ||
this.log.info(`[${channel}] ${msg} has been timed out for ${duration} seconds. Reason: ${reason || "n/a"}`); | ||
this.emit("timeout", channel, msg, reason, ~~duration); | ||
this.log.info(`[${channel}] ${msg} has been timed out for ${duration} seconds.`); | ||
this.emit("timeout", channel, msg, null, ~~duration, message.tags); | ||
} | ||
@@ -754,4 +752,3 @@ } | ||
var username = message.tags["login"]; | ||
var deletedMessage = message.tags["message"]; | ||
var deletedMessage = msg; | ||
var userstate = message.tags; | ||
@@ -758,0 +755,0 @@ userstate["message-type"] = "messagedeleted"; |
{ | ||
"name": "tmi.js", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Javascript library for the Twitch Messaging Interface.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
117447
2406