Fix issues in regards to ignoring your own nickname
This commit is contained in:
parent
da2f9c4092
commit
2162f4a55a
@ -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,
|
||||||
});
|
});
|
||||||
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user