Added spoiler support.
This commit is contained in:
parent
b56c9a3365
commit
77bc549653
9 changed files with 182 additions and 71 deletions
|
|
@ -130,21 +130,21 @@ class userList{
|
|||
function renderContextMenu(event){
|
||||
//Setup menu map
|
||||
let menuMap = new Map([
|
||||
["Profile", ()=>{this.client.cPanel.setActivePanel(new panelObj(client, `${user.user}`, `/panel/profile?user=${user.user}`))}],
|
||||
["Mention", ()=>{client.chatBox.catChat(`${user.user} `)}],
|
||||
["Toke With", ()=>{client.chatBox.tokeWith(user.user)}],
|
||||
["Profile", ()=>{this.client.cPanel.setActivePanel(new panelObj(this.client, `${user.user}`, `/panel/profile?user=${user.user}`))}],
|
||||
["Mention", ()=>{this.client.chatBox.catChat(`${user.user} `)}],
|
||||
["Toke With", ()=>{this.client.chatBox.tokeWith(user.user)}],
|
||||
]);
|
||||
|
||||
if(user.user != "Tokebot"){
|
||||
if(client.user.permMap.chan.get("kickUser")){
|
||||
menuMap.set("Kick", ()=>{client.chatBox.commandPreprocessor.preprocess(`!kick ${user.user}`)});
|
||||
if(user.user != "Tokebot" && user.user != this.client.user.user){
|
||||
if(this.client.user.permMap.chan.get("kickUser")){
|
||||
menuMap.set("Kick", ()=>{this.client.chatBox.commandPreprocessor.preprocess(`!kick ${user.user}`)});
|
||||
}
|
||||
|
||||
if(client.user.permMap.chan.get("banUser")){
|
||||
menuMap.set("Channel Ban", ()=>{new chanBanUserPopup(client.channelName, user.user);});
|
||||
if(this.client.user.permMap.chan.get("banUser")){
|
||||
menuMap.set("Channel Ban", ()=>{new chanBanUserPopup(this.client.channelName, user.user);});
|
||||
}
|
||||
|
||||
if(client.user.permMap.site.get("banUser")){
|
||||
if(this.client.user.permMap.site.get("banUser")){
|
||||
menuMap.set("Site Ban", ()=>{new banUserPopup(user.user);});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue