mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-23 21:50:10 +08:00
Fixed a valid server object being overwritten
This commit is contained in:
parent
c970eee9d3
commit
a406cfbfe2
@ -242,7 +242,7 @@ SteamCommunity.prototype.scheduleGroupEvent = function(gid, name, type, descript
|
||||
server = {"ip": "", "password": ""};
|
||||
} else if(typeof server === 'string') {
|
||||
server = {"ip": server, "password": ""};
|
||||
} else {
|
||||
} else if(typeof server !== 'object') {
|
||||
server = {"ip": "", "password": ""};
|
||||
}
|
||||
|
||||
@ -299,7 +299,7 @@ SteamCommunity.prototype.editGroupEvent = function (gid, id, name, type, descrip
|
||||
server = {"ip": "", "password": ""};
|
||||
} else if (typeof server === 'string') {
|
||||
server = {"ip": server, "password": ""};
|
||||
} else {
|
||||
} else if (typeof server !== 'object') {
|
||||
server = {"ip": "", "password": ""};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user