mirror of
https://github.com/fazo96/telecommander.git
synced 2025-01-10 11:34:20 +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
|
if(b.toread > 0) return 1
|
||||||
return cmpstr(a,b)
|
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){
|
data.chats.setItems(list.map(function(item){
|
||||||
var n = data.getName(item.id,item.title?'group':'user',true)
|
var n = data.getName(item.id,item.title?'group':'user',true)
|
||||||
if(n === undefined || n === null || !n || (n.trim && !n.trim()))
|
if(n === undefined || n === null || !n || (n.trim && !n.trim()))
|
||||||
|
@ -50,23 +50,9 @@ data.log = function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
data.command = function(cmd){
|
data.command = function(cmd){
|
||||||
cmdl = cmd.split(' ')
|
//cmdl = cmd.split(' ')
|
||||||
cmdname = cmdl[0]
|
//cmdname = cmdl[0]
|
||||||
|
data.log('Commands are not implemented!')
|
||||||
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.')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send a message
|
// Send a message
|
||||||
|
Loading…
Reference in New Issue
Block a user