mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Fixed crashing issue in chat
This commit is contained in:
@@ -92,8 +92,8 @@ function all_chat(msg, guid, offline, socket) {
|
||||
|
||||
function namechange(data, guid, socket, tried) {
|
||||
if(!data.hasOwnProperty("name") || data.name.length > 10 ||
|
||||
!data.hasOwnProperty("channel") || typeof(msg.name) != "string" ||
|
||||
typeof(msg.channel) != "string") return;
|
||||
!data.hasOwnProperty("channel") || typeof(data.name) != "string" ||
|
||||
typeof(data.channel) != "string") return;
|
||||
var pw = "";
|
||||
var new_password;
|
||||
var first = false;
|
||||
|
||||
Reference in New Issue
Block a user