mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Timeout api, and fixes it lead to
- timeout on api-calls with Retry-After present in header - Fixed issue where when server restarts you are sometimes logged out for some reason - README updates
This commit is contained in:
		| @@ -77,10 +77,18 @@ function skip(list, guid, coll, offline, socket) { | ||||
|  | ||||
|     if(list !== undefined && list !== null && list !== "") | ||||
|     { | ||||
|  | ||||
|         if(coll == "" || coll == undefined || coll == null) { | ||||
|             socket.emit("update_required"); | ||||
|             return; | ||||
|         if(coll == undefined && list.hasOwnProperty('channel')) coll = list.channel; | ||||
|         if(coll !== undefined) { | ||||
|             try { | ||||
|                 coll = list.channel; | ||||
|                 if(coll.length == 0) return; | ||||
|                 coll = emojiStrip(coll).toLowerCase(); | ||||
|                 coll = coll.replace("_", ""); | ||||
|                 coll = encodeURIComponent(coll).replace(/\W/g, ''); | ||||
|                 coll = filter.clean(coll); | ||||
|             } catch(e) { | ||||
|                 return; | ||||
|             } | ||||
|         } | ||||
|         if(typeof(list.pass) != "string" || typeof(list.id) != "string" || | ||||
|             typeof(list.channel) != "string" || typeof(list.userpass) != "string") { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user