This commit is contained in:
Bartek Stalewski 2017-02-27 11:17:42 +01:00
parent 69d3653746
commit a73e7023d0
4 changed files with 61 additions and 21 deletions

View file

@ -117,7 +117,7 @@ end</script>
<eventHandlerList/>
</Script>
<Script isActive="yes" isFolder="no">
<name>ftpd-binds</name>
<name>ftpd-beep-bind</name>
<packageName></packageName>
<script>function scripts.utils.bind_functional(command, silent)
scripts.utils.functional_key = command
@ -127,23 +127,7 @@ end</script>
raiseEvent(&quot;playBeep&quot;)
end
end
function scripts.utils.bind_functional_team_follow(line, command, delay, silent)
-- check whether the line contains the team leader name
if not line then
scripts.utils.bind_functional(command, delay, silent)
raiseEvent(&quot;ateamTeamFollowBind&quot;)
end
for k, v in pairs(ateam.team) do
if type(k) == &quot;number&quot; then
if ateam and ateam.objs and ateam.objs[k][&quot;team_leader&quot;] and string.find(line, ateam.objs[k][&quot;desc&quot;]) then
scripts.utils.bind_functional(command, silent)
raiseEvent(&quot;ateamTeamFollowBind&quot;)
end
end
end
end</script>
</script>
<eventHandlerList/>
</Script>
<Script isActive="yes" isFolder="no">