diff --git a/lib/util.js b/lib/util.js index bad9925..2cb4085 100644 --- a/lib/util.js +++ b/lib/util.js @@ -76,10 +76,6 @@ module.exports = function(data){ if(b.toread > 0) return 1 return cmpstr(a,b) }) - list = list.filter(function(item){ - var n = data.getName(item.id,item.title?'group':'user',true) - return n.indexOf('Michele')>=0 || n.indexOf('Telecommander')>=0 || n.indexOf('Ravinder')>=0 - }) data.chats.setItems(list.map(function(item){ var n = data.getName(item.id,item.title?'group':'user',true) if(n === undefined || n === null || !n || (n.trim && !n.trim())) diff --git a/telecommander.js b/telecommander.js index 68bb766..22b0ba4 100755 --- a/telecommander.js +++ b/telecommander.js @@ -50,23 +50,9 @@ data.log = function(){ } data.command = function(cmd){ - cmdl = cmd.split(' ') - cmdname = cmdl[0] - - if(cmdname === 'phone'){ // So the user can provide his phone numbah - if(data.connected){ - return log("Silly user, you're already connected! We don't need that phone number") - } - - - } else if(cmdname === 'code'){ // So the user can provide his phone code - if(data.connected){ - return data.log("Silly user, you're already connected! We don't need that phone code") - } - - } else { - data.log('Command not found.') - } + //cmdl = cmd.split(' ') + //cmdname = cmdl[0] + data.log('Commands are not implemented!') } // Send a message