Merge pull request #2795 from thelounge/xpaw/fix-2794
Fix issues in regards to ignoring your own nickname
This commit is contained in:
commit
d26db390c3
@ -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,
|
||||
});
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user