Added '/quote' command
This commit is contained in:
parent
34b729440e
commit
0199fb4657
|
@ -75,6 +75,9 @@ Commands:
|
||||||
|
|
||||||
remove <name>
|
remove <name>
|
||||||
Remove an existing user
|
Remove an existing user
|
||||||
|
|
||||||
|
edit <name>
|
||||||
|
Edit an existing user
|
||||||
```
|
```
|
||||||
|
|
||||||
Pretty simple, huh?
|
Pretty simple, huh?
|
||||||
|
@ -103,6 +106,7 @@ These are the commands currently implemented:
|
||||||
- [x] /part
|
- [x] /part
|
||||||
- [x] /query
|
- [x] /query
|
||||||
- [x] /quit
|
- [x] /quit
|
||||||
|
- [x] /quote
|
||||||
- [x] /raw
|
- [x] /raw
|
||||||
- [x] /say
|
- [x] /say
|
||||||
- [x] /send
|
- [x] /send
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "shout",
|
"name": "shout",
|
||||||
"description": "A web IRC client",
|
"description": "A web IRC client",
|
||||||
"version": "0.10.7",
|
"version": "0.10.8",
|
||||||
"author": "Mattias Erming",
|
"author": "Mattias Erming",
|
||||||
"preferGlobal": true,
|
"preferGlobal": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
@ -4,7 +4,7 @@ var child = require("child_process");
|
||||||
|
|
||||||
program
|
program
|
||||||
.command("edit <name>")
|
.command("edit <name>")
|
||||||
.description("Edit existing user")
|
.description("Edit an existing user")
|
||||||
.action(function(name) {
|
.action(function(name) {
|
||||||
var users = new ClientManager().getUsers();
|
var users = new ClientManager().getUsers();
|
||||||
if (users.indexOf(name) === -1) {
|
if (users.indexOf(name) === -1) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
module.exports = function(network, chan, cmd, args) {
|
module.exports = function(network, chan, cmd, args) {
|
||||||
if (cmd != "raw" && cmd != "send") {
|
if (cmd != "raw" && cmd != "send" && cmd != "quote") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (args.length !== 0) {
|
if (args.length !== 0) {
|
||||||
|
|
Loading…
Reference in New Issue