| 807 | |
| 808 | |
| 809 | static int SendJoinServer(lua_State* L) { |
| 810 | const int playerID = luaL_checkint(L, 1); |
| 811 | const char* addr = luaL_checkstring(L, 2); |
| 812 | const int port = luaL_checkint(L, 3); |
| 813 | const int teamID = luaL_optint(L, 4, eNoTeam); |
| 814 | const char* referrer = luaL_optstring(L, 5, bz_getPublicAddr().c_str()); |
| 815 | const char* message = luaL_optstring(L, 6, NULL); |
| 816 | lua_pushboolean(L, bz_sendJoinServer(playerID, addr, port, |
| 817 | teamID, referrer, message)); |
| 818 | return 1; |
| 819 | } |
| 820 | |
| 821 | |
| 822 | static int PlaySound(lua_State* L) { |
nothing calls this directly
no test coverage detected