Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
correcting adressed object
Browse files Browse the repository at this point in the history
  • Loading branch information
Idrinth committed Sep 6, 2016
1 parent b5b1454 commit 695a572
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mods/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,16 +804,16 @@ idrinth.chat = {
},
loginCallback: function ( data ) {
if ( !data ) {
idrinth.core.alert ( idrinth.getMsg ( 'login.fail' ) );
idrinth.core.alert ( idrinth.chat.getMsg ( 'login.fail' ) );
return;
}
data = JSON.parse ( data );
if ( !data ) {
idrinth.core.alert ( idrinth.getMsg ( 'login.fail' ) );
idrinth.core.alert ( idrinth.chat.getMsg ( 'login.fail' ) );
return;
}
if ( !data.success && data.message && data['allow-reg'] ) {
idrinth.core.confirm ( idrinth.getMsg ( 'user.unknown' ), 'idrinth.chat.register();' );
idrinth.core.confirm ( idrinth.chat.getMsg ( 'user.unknown' ), 'idrinth.chat.register();' );
return;
}
if ( !data.success && data.message ) {
Expand All @@ -828,7 +828,7 @@ idrinth.chat = {
idrinth.chat.join ( data.data );
return;
}
idrinth.core.alert ( idrinth.getMsg ( 'login.fail' ) );
idrinth.core.alert ( idrinth.chat.getMsg ( 'login.fail' ) );
},
register: function () {
this.loginActions ( 'register' );
Expand Down

0 comments on commit 695a572

Please sign in to comment.