-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathremote.mod
More file actions
28 lines (25 loc) · 493 Bytes
/
remote.mod
File metadata and controls
28 lines (25 loc) · 493 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
msg=function()
end
remote={}
remote.name=""
remote.cmd=""
remote_called=function(n,l,w)
remote.name=string.lower(w[2])
remote.cmd=w[3]
if mudvar.teller==nil then
getmudvar()
infoend(check_tell)
else
check_tell()
end
end
check_tell=function()
if validtellername(remote.name) then
print("收到远程控制命令"..remote.cmd)
Execute(remote.cmd)
end
end
validtellername=function(str)
if str==mudvar.teller then return true end
return false
end