mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 05:50:22 +00:00
Added '/slap' command
This commit is contained in:
parent
276db34c34
commit
3e4cb78813
1 changed files with 3 additions and 5 deletions
|
@ -164,12 +164,14 @@ function input(data) {
|
|||
}
|
||||
break;
|
||||
|
||||
case "slap":
|
||||
var slap = "slaps " + args[1] + " around a bit with a large trout";
|
||||
case "me":
|
||||
if (!args[1]) {
|
||||
break;
|
||||
}
|
||||
var user;
|
||||
var text = args.slice(1).join(" ");
|
||||
var text = slap || args.slice(1).join(" ");
|
||||
if (client) {
|
||||
user = client.me;
|
||||
client.action(chan.name, text);
|
||||
|
@ -213,10 +215,6 @@ function input(data) {
|
|||
);
|
||||
break;
|
||||
|
||||
case "ame":
|
||||
console.log("AME");
|
||||
break;
|
||||
|
||||
case "server":
|
||||
case "connect":
|
||||
if (args[1]) {
|
||||
|
|
Loading…
Reference in a new issue