Use Client.isMyNick in NOTICE/PRIVMSG handling
This commit is contained in:
parent
5a3edf4769
commit
99ac0151a5
1 changed files with 2 additions and 2 deletions
|
@ -686,8 +686,8 @@ export default class App extends Component {
|
||||||
case "NOTICE":
|
case "NOTICE":
|
||||||
case "PRIVMSG":
|
case "PRIVMSG":
|
||||||
var target = msg.params[0];
|
var target = msg.params[0];
|
||||||
if (target == client.nick) {
|
if (client.isMyNick(target)) {
|
||||||
if (client.cm(msg.prefix.name) == client.cm(client.serverPrefix.name)) {
|
if (client.cm(msg.prefix.name) === client.cm(client.serverPrefix.name)) {
|
||||||
target = SERVER_BUFFER;
|
target = SERVER_BUFFER;
|
||||||
} else {
|
} else {
|
||||||
target = msg.prefix.name;
|
target = msg.prefix.name;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue