Add banlist context menu item
This commit is contained in:
parent
09b2cd7527
commit
5084037cdc
@ -133,6 +133,14 @@ $(function() {
|
|||||||
data: target.data("id"),
|
data: target.data("id"),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (target.hasClass("channel")) {
|
||||||
|
output += templates.contextmenu_item({
|
||||||
|
class: "list",
|
||||||
|
action: "banlist",
|
||||||
|
text: "List banned users",
|
||||||
|
data: target.data("id"),
|
||||||
|
});
|
||||||
|
}
|
||||||
output += templates.contextmenu_item({
|
output += templates.contextmenu_item({
|
||||||
class: "close",
|
class: "close",
|
||||||
action: "close",
|
action: "close",
|
||||||
@ -478,6 +486,12 @@ $(function() {
|
|||||||
text: "/list",
|
text: "/list",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
banlist: function(itemData) {
|
||||||
|
socket.emit("input", {
|
||||||
|
target: itemData,
|
||||||
|
text: "/banlist",
|
||||||
|
});
|
||||||
|
},
|
||||||
whois: function(itemData) {
|
whois: function(itemData) {
|
||||||
const chan = utils.findCurrentNetworkChan(itemData);
|
const chan = utils.findCurrentNetworkChan(itemData);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user