Merge pull request #208 from thelounge/xpaw/remove-commands
Remove join, nick and whois inputs, they are cleanly handled by the server
This commit is contained in:
commit
eadcca0b5e
@ -17,7 +17,6 @@ $(function() {
|
|||||||
"/notice",
|
"/notice",
|
||||||
"/op",
|
"/op",
|
||||||
"/part",
|
"/part",
|
||||||
"/query",
|
|
||||||
"/quit",
|
"/quit",
|
||||||
"/raw",
|
"/raw",
|
||||||
"/say",
|
"/say",
|
||||||
|
@ -35,15 +35,12 @@ var events = [
|
|||||||
var inputs = [
|
var inputs = [
|
||||||
// These inputs are sorted in order that is most likely to be used
|
// These inputs are sorted in order that is most likely to be used
|
||||||
"msg",
|
"msg",
|
||||||
"whois",
|
|
||||||
"part",
|
"part",
|
||||||
"action",
|
"action",
|
||||||
"connect",
|
"connect",
|
||||||
"invite",
|
"invite",
|
||||||
"join",
|
|
||||||
"kick",
|
"kick",
|
||||||
"mode",
|
"mode",
|
||||||
"nick",
|
|
||||||
"notice",
|
"notice",
|
||||||
"quit",
|
"quit",
|
||||||
"raw",
|
"raw",
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
exports.commands = ["join"];
|
|
||||||
|
|
||||||
exports.input = function(network, chan, cmd, args) {
|
|
||||||
if (args.length !== 0) {
|
|
||||||
var irc = network.irc;
|
|
||||||
irc.join(args[0], args[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
};
|
|
@ -1,10 +0,0 @@
|
|||||||
exports.commands = ["nick"];
|
|
||||||
|
|
||||||
exports.input = function(network, chan, cmd, args) {
|
|
||||||
if (args.length !== 0) {
|
|
||||||
var irc = network.irc;
|
|
||||||
irc.nick(args[0]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
};
|
|
@ -1,10 +0,0 @@
|
|||||||
exports.commands = ["query", "whois"];
|
|
||||||
|
|
||||||
exports.input = function(network, chan, cmd, args) {
|
|
||||||
if (args.length !== 0) {
|
|
||||||
var irc = network.irc;
|
|
||||||
irc.whois(args[0]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
};
|
|
Loading…
Reference in New Issue
Block a user