Fix to make sure there is a user associated with the mode event before accessing the property.

This commit is contained in:
rginda%ndcico.com 1999-09-18 01:12:18 +00:00
parent d4a7d84481
commit 6de7efd822

View File

@ -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();