administration.lua: fixed bug where users have no username
tg-install.sh: added info
This commit is contained in:
parent
180cd6078a
commit
42d0e4cb0e
@ -229,7 +229,7 @@ local commands = {
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- antibot
|
-- antibot
|
||||||
if msg.new_chat_participant.username:match('bot$') then
|
if msg.new_chat_participant.username and msg.new_chat_participant.username:match('bot$') then
|
||||||
if rank < 2 and group.flags[4] == true then
|
if rank < 2 and group.flags[4] == true then
|
||||||
kick_user(msg.new_chat_participant.id, msg.chat.id)
|
kick_user(msg.new_chat_participant.id, msg.chat.id)
|
||||||
return
|
return
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
# Written for Ubuntu/Debian. If you're running Arch (the only acceptable
|
# Written for Ubuntu/Debian. If you're running Arch (the only acceptable
|
||||||
# alternative), figure it out yourself.
|
# alternative), figure it out yourself.
|
||||||
|
|
||||||
|
echo 'Requesting root privileges to install necessary packages:'
|
||||||
|
echo 'libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev make'
|
||||||
sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev make
|
sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev make
|
||||||
git clone http://github.com/topkecleon/lua-tg
|
git clone http://github.com/topkecleon/lua-tg
|
||||||
git clone http://github.com/vysheng/tg --recursive -b test
|
git clone http://github.com/vysheng/tg --recursive -b test
|
||||||
|
Reference in New Issue
Block a user