Finished up with chat prompt autocomplete.
This commit is contained in:
parent
acbe0400c4
commit
9df7f52e9e
7 changed files with 197 additions and 100 deletions
|
|
@ -58,12 +58,15 @@ class channel{
|
|||
}
|
||||
|
||||
handleClientInfo(data){
|
||||
this.user = {
|
||||
id: data.user.id,
|
||||
name: data.user.name,
|
||||
rank: data.user.rank
|
||||
}
|
||||
//Ingest user data
|
||||
this.user = data.user;
|
||||
|
||||
//Re-hydrate permission maps
|
||||
this.user.permMap.site = new Map(data.user.permMap.site);
|
||||
this.user.permMap.chan = new Map(data.user.permMap.chan);
|
||||
|
||||
//Tell the chatbox to handle client info
|
||||
//should it have its own event listener instead? Guess it's a stylistic choice :P
|
||||
this.chatBox.handleClientInfo(data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue