mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
commit
5e0a12b124
1 changed files with 6 additions and 2 deletions
|
@ -3,10 +3,14 @@
|
|||
const Chan = require("../../models/chan");
|
||||
const Msg = require("../../models/msg");
|
||||
|
||||
exports.commands = ["mode", "op", "deop", "hop", "dehop", "voice", "devoice"];
|
||||
exports.commands = ["mode", "umode", "op", "deop", "hop", "dehop", "voice", "devoice"];
|
||||
|
||||
exports.input = function ({irc, nick}, chan, cmd, args) {
|
||||
if (cmd !== "mode") {
|
||||
if (cmd === "umode") {
|
||||
irc.raw("MODE", nick, ...args);
|
||||
|
||||
return;
|
||||
} else if (cmd !== "mode") {
|
||||
if (chan.type !== Chan.Type.CHANNEL) {
|
||||
chan.pushMessage(
|
||||
this,
|
||||
|
|
Loading…
Reference in a new issue