From: Luigi Pinca Date: Tue, 18 Feb 2014 09:05:00 +0000 (+0100) Subject: added ability to clear the chat X-Git-Url: https://git.saalbach.dev/?a=commitdiff_plain;h=277df55f6633127c89be70e9f42f4391389ac285;p=binbsis50.git added ability to clear the chat --- 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,