aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webclient/client.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/webclient/client.html b/webclient/client.html
index 3e7beb7..7885fe7 100644
--- a/webclient/client.html
+++ b/webclient/client.html
@@ -21,6 +21,7 @@ var net_callbacks={};
function net_send(msg,cb){
var id=uniqid()+"";
sock.send(id+" "+msg);
+ console.log("Sent '"+id+" "+msg+"'");
net_callbacks[id]=cb;
}
@@ -327,7 +328,9 @@ function doSend(){
inputelem.value="";
if(text.length==0)return;
- if(text[0]=="/"){
+ if(text.length>=2&&text[0]=="/"&&text[1]=="/"){
+ sendMessage(currentroom,text.slice(1));
+ } else if(text[0]=="/"){
executeCommand(currentroom,text.slice(1));
} else {
sendMessage(currentroom,text);