File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -180,8 +180,8 @@ function updateUser(id, name) {
180180 } ) ;
181181 clients [ id ] . un = name ;
182182 } else {
183- var motive = 'format' ,
184- check = false ;
183+ var motive = 'format' ;
184+ var check = false ;
185185
186186 if ( ! name . match ( alphanumeric ) ) motive = 'format' ;
187187 if ( name . length < 3 || name . length > 16 ) motive = 'length' ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ module.exports = {
1717
1818 sendToAll : function ( clients , data ) {
1919 for ( var client in clients ) {
20- if ( clients [ client ] . role > 1 && ( data . info === 'connection' || data . info === 'disconnection' ) ) {
20+ if ( clients [ client ] . role > 1 && ( data . info === 'connection' || data . info === 'disconnection' || data . info === 'update' || data . info === 'clients' ) ) {
2121 data . user . ip = clients [ client ] . ip ;
2222 } else if ( data . user ) {
2323 delete data . user . ip ;
You can’t perform that action at this time.
0 commit comments