mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Namechanges
This commit is contained in:
@@ -4,7 +4,10 @@ var Chat = {
|
||||
{
|
||||
if(data.value.length > 150)
|
||||
return;
|
||||
if($(".tab a.active").attr("href") == "#all_chat")
|
||||
if(data.value.startsWith("/name ")){
|
||||
socket.emit("namechange", data.value.substring(6));
|
||||
}
|
||||
else if($(".tab a.active").attr("href") == "#all_chat")
|
||||
socket.emit("all,chat", data.value);
|
||||
else
|
||||
socket.emit("chat", data.value);
|
||||
|
||||
Reference in New Issue
Block a user