.
This commit is contained in:
parent
69d3653746
commit
a73e7023d0
4 changed files with 61 additions and 21 deletions
20
scripts.xml
20
scripts.xml
|
@ -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("playBeep")
|
||||
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("ateamTeamFollowBind")
|
||||
end
|
||||
|
||||
for k, v in pairs(ateam.team) do
|
||||
if type(k) == "number" then
|
||||
if ateam and ateam.objs and ateam.objs[k]["team_leader"] and string.find(line, ateam.objs[k]["desc"]) then
|
||||
scripts.utils.bind_functional(command, silent)
|
||||
raiseEvent("ateamTeamFollowBind")
|
||||
end
|
||||
end
|
||||
end
|
||||
end</script>
|
||||
</script>
|
||||
<eventHandlerList/>
|
||||
</Script>
|
||||
<Script isActive="yes" isFolder="no">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue