Permalink
Browse files

Fix another crash in N's namelock code

  • Loading branch information...
1 parent 7d13502 commit 052057f7a5a9ac16e45696e86d030f6d4432dc69 @Zarel Zarel committed May 4, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 chat-commands.js
View
@@ -67,6 +67,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) {
if (userOfName) {
for(var altName in userOfName.getAlts()) {
var altUser = Users.users[toUserid(altName)];
+ if (!altUser) continue;
if (targetId === altUser.userid) {
isAlt = true;
break;

0 comments on commit 052057f

Please sign in to comment.