From 36474be3aa1bb835145b377414969689f6e27489 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Tue, 1 Sep 2015 16:50:42 +0200 Subject: [PATCH] remove stupid hack that I forgot in --- lib/util.js | 4 ---- telecommander.js | 20 +++----------------- 2 files changed, 3 insertions(+), 21 deletions(-) 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