MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / SendJoinServer

Function SendJoinServer

src/bzfs/lua/CallOuts.cpp:809–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807
808
809static 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
822static int PlaySound(lua_State* L) {

Callers

nothing calls this directly

Calls 3

bz_sendJoinServerFunction · 0.85
c_strMethod · 0.80
lua_pushbooleanFunction · 0.50

Tested by

no test coverage detected