mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added function for rules, and moved thumbnail/data somewhat around for better readability
This commit is contained in:
@@ -190,6 +190,17 @@ module.exports = function() {
|
||||
Suggestions.description(msg, coll, guid, offline, socket);
|
||||
});
|
||||
|
||||
socket.on('suggest_rules', function(msg){
|
||||
if(msg.hasOwnProperty("channel") && msg.channel.indexOf("?") > -1){
|
||||
var _list = msg.channel.substring(0, msg.channel.indexOf("?"));
|
||||
msg.channel = _list;
|
||||
}
|
||||
if(msg.hasOwnProperty("channel")) {
|
||||
msg.channel = Functions.encodeChannelName(msg.channel);
|
||||
}
|
||||
Suggestions.rules(msg, coll, guid, offline, socket);
|
||||
});
|
||||
|
||||
socket.on("namechange", function(msg) {
|
||||
if(msg.hasOwnProperty("channel") && msg.channel.indexOf("?") > -1){
|
||||
var _list = msg.channel.substring(0, msg.channel.indexOf("?"));
|
||||
|
||||
Reference in New Issue
Block a user