mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
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 "PRIVMSG":
|
||||
var target = msg.params[0];
|
||||
if (target == client.nick) {
|
||||
if (client.cm(msg.prefix.name) == client.cm(client.serverPrefix.name)) {
|
||||
if (client.isMyNick(target)) {
|
||||
if (client.cm(msg.prefix.name) === client.cm(client.serverPrefix.name)) {
|
||||
target = SERVER_BUFFER;
|
||||
} else {
|
||||
target = msg.prefix.name;
|
||||
|
|
Loading…
Reference in a new issue