mirror of
https://github.com/fazo96/telecommander.git
synced 2025-01-09 11:29:51 +01:00
remove stupid hack that I forgot in
This commit is contained in:
parent
0905019b55
commit
36474be3aa
@ -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()))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user