From 277df55f6633127c89be70e9f42f4391389ac285 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Tue, 18 Feb 2014 10:05:00 +0100 Subject: [PATCH] added ability to clear the chat --- package.json | 2 +- public/js/app.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b6b5e29..fe1e2ad 100644 --- a/package.json +++ b/package.json @@ -30,5 +30,5 @@ "start": "node app.js" }, "subdomain": "binb", - "version": "0.4.3" + "version": "0.4.4" } diff --git a/public/js/app.js b/public/js/app.js index 8849faa..eb48aab 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -958,6 +958,12 @@ }; var slashcommands = { + clear: { + fn: function() { + DOM.chat.empty(); + }, + minargs: 0 + }, ignore: { checkrecipient: true, // Assume that the first argument (argv[0]) is the recipient fn: ignorePlayer, -- 2.54.0