summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjak1 <jak1@themanaworld.org>2023-01-12 23:00:38 +0100
committerjak1 <jak1@themanaworld.org>2023-01-12 23:00:38 +0100
commit20548feae0ad2ace70e92243b1ce48fa1bf50d08 (patch)
treecab9e5ed39cb3ee7e744ed023c9e61ff83331bfb
parent72f19788ce5785262d52c43c5e752aa42797a971 (diff)
downloadthepixelworld-20548feae0ad2ace70e92243b1ce48fa1bf50d08.tar.gz
thepixelworld-20548feae0ad2ace70e92243b1ce48fa1bf50d08.tar.bz2
thepixelworld-20548feae0ad2ace70e92243b1ce48fa1bf50d08.tar.xz
thepixelworld-20548feae0ad2ace70e92243b1ce48fa1bf50d08.zip
fixed all commands toLowerCase
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index 0eae115..193a4f8 100644
--- a/app.js
+++ b/app.js
@@ -108,7 +108,7 @@ io.sockets.on('connection', function(socket){
if(modifyer === '@'){
hasPermission(socket.playerName, 1, function(res){
if (res)
- switch (command[0]) {
+ switch (command[0].toLowerCase()) {
// @bc (args: <message>)
case "bc":
case "broadcast":