mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 14:50:56 +00:00
The Report Your Errors Update
* Add automatic error reporting with Sentry.io * Filter a bunch of bad errors from showing up on Sentry * Add module.hasModule method. * Fix deep_copy * Fix disallow mouse interaction with extensions * Add some new icons to the icon font for mod cards * Allow Ctrl-Shift-Clicking emotes. * Rarity sorting for experiments and unset display for unused experiments.
This commit is contained in:
parent
e3a7e3b64d
commit
d7a07a5612
32 changed files with 575 additions and 83 deletions
|
@ -303,11 +303,15 @@ export default class Chat extends Module {
|
|||
else if ( this.users[login] && ! no_login )
|
||||
user = this.users[login];
|
||||
|
||||
else if ( no_create )
|
||||
return null;
|
||||
if ( user && user.destroyed )
|
||||
user = null;
|
||||
|
||||
else
|
||||
user = new User(this, null, id, login);
|
||||
if ( ! user ) {
|
||||
if ( no_create )
|
||||
return null;
|
||||
else
|
||||
user = new User(this, null, id, login);
|
||||
}
|
||||
|
||||
if ( id && id !== user.id ) {
|
||||
// If the ID isn't what we expected, something is very wrong here.
|
||||
|
@ -358,11 +362,15 @@ export default class Chat extends Module {
|
|||
else if ( this.rooms[login] && ! no_login )
|
||||
room = this.rooms[login];
|
||||
|
||||
else if ( no_create )
|
||||
return null;
|
||||
if ( room && room.destroyed )
|
||||
room = null;
|
||||
|
||||
else
|
||||
room = new Room(this, id, login);
|
||||
if ( ! room ) {
|
||||
if ( no_create )
|
||||
return null;
|
||||
else
|
||||
room = new Room(this, id, login);
|
||||
}
|
||||
|
||||
if ( id && id !== room.id ) {
|
||||
// If the ID isn't what we expected, something is very wrong here.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue