Fix issues in regards to ignoring your own nickname

This commit is contained in:
Pavel Djundik 2018-09-22 13:27:03 +03:00
parent da2f9c4092
commit 2162f4a55a
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,8 @@ exports.input = function(network, chan, cmd, args) {
if (typeof channel !== "undefined") { if (typeof channel !== "undefined") {
network.irc.emit("privmsg", { network.irc.emit("privmsg", {
nick: network.irc.user.nick, nick: network.irc.user.nick,
ident: network.irc.user.username,
hostname: network.irc.user.host,
target: channel.name, target: channel.name,
message: msg, message: msg,
}); });

View File

@ -45,7 +45,7 @@ module.exports = function(irc, network) {
const self = data.nick === irc.user.nick; const self = data.nick === irc.user.nick;
// Check if the sender is in our ignore list // Check if the sender is in our ignore list
const shouldIgnore = network.ignoreList.some(function(entry) { const shouldIgnore = !self && network.ignoreList.some(function(entry) {
return Helper.compareHostmask(entry, data); return Helper.compareHostmask(entry, data);
}); });