blob: a1dd57185cb2432c537b8bdd9105706d52994e8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env lua5.1
local server = require("server")
local srv = server.create()
local started = false
while true do
server.update(srv)
local status, invite = server.match_status(srv)
if status == "fail" then
print("failed to register match (match server down?)")
break
elseif status == "active" and not started then
started = true
print("invite: " .. invite)
end
end
server.close(srv)
|