]> git.example.dev Git - binbsis50.git/commitdiff
added ability to clear the chat
authorLuigi Pinca <luigipinca@gmail.com>
Tue, 18 Feb 2014 09:05:00 +0000 (10:05 +0100)
committerLuigi Pinca <luigipinca@gmail.com>
Tue, 18 Feb 2014 09:05:00 +0000 (10:05 +0100)
package.json
public/js/app.js

index b6b5e29b66c7e27adbf61ac9c550e82e35744aed..fe1e2ad5029faefc97f4cd6188d9656049354eef 100644 (file)
@@ -30,5 +30,5 @@
     "start": "node app.js"
   },
   "subdomain": "binb",
-  "version": "0.4.3"
+  "version": "0.4.4"
 }
index 8849faa18ed204b172b821f4b73e0d93409d6252..eb48aabf7b60fa2509e034b494313fcd36457a5f 100644 (file)
   };
 
   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,