Finished up with profile tooltips and context-menus.
This commit is contained in:
parent
9a8def18d7
commit
b56c9a3365
10 changed files with 370 additions and 335 deletions
|
|
@ -135,6 +135,20 @@ class userList{
|
|||
["Toke With", ()=>{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(client.user.permMap.chan.get("banUser")){
|
||||
menuMap.set("Channel Ban", ()=>{new chanBanUserPopup(client.channelName, user.user);});
|
||||
}
|
||||
|
||||
if(client.user.permMap.site.get("banUser")){
|
||||
menuMap.set("Site Ban", ()=>{new banUserPopup(user.user);});
|
||||
}
|
||||
}
|
||||
|
||||
//Display the menu
|
||||
utils.ux.displayContextMenu(event, user.user, menuMap);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue