Skip to content

Commit

Permalink
v0.26.7 - Show user IPs to admins on Users panel
Browse files Browse the repository at this point in the history
  • Loading branch information
igorantun committed Aug 10, 2015
1 parent 51b087a commit 4d08d2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ function updateUser(id, name) {
});
clients[id].un = name;
} else {
var motive = 'format',
check = false;
var motive = 'format';
var check = false;

if(!name.match(alphanumeric)) motive = 'format';
if(name.length < 3 || name.length > 16) motive = 'length';
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {

sendToAll: function(clients, data) {
for(var client in clients) {
if(clients[client].role > 1 && (data.info === 'connection' || data.info === 'disconnection')) {
if(clients[client].role > 1 && (data.info === 'connection' || data.info === 'disconnection' || data.info === 'update' || data.info === 'clients')) {
data.user.ip = clients[client].ip;
} else if(data.user) {
delete data.user.ip;
Expand Down

0 comments on commit 4d08d2d

Please sign in to comment.