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") {
network.irc.emit("privmsg", {
nick: network.irc.user.nick,
ident: network.irc.user.username,
hostname: network.irc.user.host,
target: channel.name,
message: msg,
});

View file

@ -45,7 +45,7 @@ module.exports = function(irc, network) {
const self = data.nick === irc.user.nick;
// 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);
});