mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Fix to make sure there is a user associated with the mode event before accessing the property.
This commit is contained in:
parent
d4a7d84481
commit
6de7efd822
@ -741,8 +741,9 @@ CIRCChannel.prototype.onChanMode =
|
||||
function my_cmode (e)
|
||||
{
|
||||
|
||||
this.display ("Mode " + e.params.slice(1).join(" ") + " by " +
|
||||
e.user.nick, "MODE");
|
||||
if (e.user)
|
||||
this.display ("Mode " + e.params.slice(1).join(" ") + " by " +
|
||||
e.user.nick, "MODE");
|
||||
|
||||
for (var u in e.usersAffected)
|
||||
e.usersAffected[u].updateDecoratedNick();
|
||||
|
Loading…
x
Reference in New Issue
Block a user