mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 09:50:24 +00:00
Fixed local-mode issue with encoded channel-names
This commit is contained in:
@@ -332,7 +332,7 @@ module.exports = function() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var status = msg.status;
|
var status = msg.status;
|
||||||
var channel = Functions.encodeChannelName(msg.channel); //.replace(/ /g,'');
|
var channel = msg.channel; //.replace(/ /g,'');
|
||||||
if (status) {
|
if (status) {
|
||||||
in_list = false;
|
in_list = false;
|
||||||
offline = true;
|
offline = true;
|
||||||
@@ -505,14 +505,14 @@ module.exports = function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
socket.on("join_silent", function(msg) {
|
socket.on("join_silent", function(msg) {
|
||||||
if (msg.hasOwnProperty("channel") && msg.channel.indexOf("?") > -1) {
|
if (msg.hasOwnProperty("channel") && msg.channel.indexOf("?") > -1) {
|
||||||
var _list = msg.channel.substring(0, msg.channel.indexOf("?"));
|
var _list = msg.channel.substring(0, msg.channel.indexOf("?"));
|
||||||
msg.channel = _list;
|
msg.channel = _list;
|
||||||
}
|
}
|
||||||
if (msg.hasOwnProperty("channel")) {
|
if (msg.hasOwnProperty("channel")) {
|
||||||
msg.channel = Functions.encodeChannelName(msg.channel);
|
msg.channel = Functions.encodeChannelName(msg.channel);
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
List.join_silent(msg, socket);
|
List.join_silent(msg, socket);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user