Merge pull request #2795 from thelounge/xpaw/fix-2794

Fix issues in regards to ignoring your own nickname
This commit is contained in:
Jérémie Astori 2018-09-22 15:33:09 -04:00 committed by GitHub
commit d26db390c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
});