mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Don't duplicate PMs sent to yourself
This commit is contained in:
parent
1c2d3d43ab
commit
b8109f2f40
|
|
@ -435,7 +435,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) {
|
|||
message: targets[1]
|
||||
};
|
||||
user.emit('console', message);
|
||||
targets[0].emit('console', message);
|
||||
if (targets[0] !== user) targets[0].emit('console', message);
|
||||
targets[0].lastPM = user.userid;
|
||||
user.lastPM = targets[0].userid;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user