mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Fixed issue with channelnames with weird characters not working
This commit is contained in:
		| @@ -23,8 +23,8 @@ function password(inp, coll, guid, offline, socket) { | ||||
|             coll = inp.channel; | ||||
|             if(coll.length == 0) return; | ||||
|             coll = emojiStrip(coll).toLowerCase(); | ||||
|             coll = coll.replace("_", ""); | ||||
|             coll = encodeURIComponent(coll).replace(/\W/g, ''); | ||||
|             coll = coll.replace(/_/g, ""); | ||||
|              | ||||
|             coll = filter.clean(coll); | ||||
|         } catch(e) { | ||||
|             return; | ||||
| @@ -87,8 +87,8 @@ function conf_function(params, coll, guid, offline, socket) { | ||||
|                 coll = params.channel.replace(/ /g,''); | ||||
|                 if(coll.length == 0) return; | ||||
|                 coll = emojiStrip(coll).toLowerCase(); | ||||
|                 coll = coll.replace("_", ""); | ||||
|                 coll = encodeURIComponent(coll).replace(/\W/g, ''); | ||||
|                 coll = coll.replace(/_/g, ""); | ||||
|                  | ||||
|                 coll = filter.clean(coll); | ||||
|             } catch(e) { | ||||
|                 return; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user