Call this function right after a player connects to the game to see if a player is banned
| 725 | } |
| 726 | // Call this function right after a player connects to the game to see if a player is banned |
| 727 | bool GameDLLIsAddressBanned(network_address *addr, const char *tracker_id) { |
| 728 | ASSERT(addr); |
| 729 | DLLInfo.special_data = (uint8_t *)addr; |
| 730 | // This used to be tracker_id, but storing a pointer as an int is a problem in 64 bit |
| 731 | // and no code ever was populating the tracker id that I know of. -Kevin |
| 732 | DLLInfo.iParam = 0; |
| 733 | DLLInfo.iRet = 0; |
| 734 | CallGameDLL(EVT_GAMECHECKBAN, &DLLInfo); |
| 735 | if (DLLInfo.iRet) |
| 736 | return true; |
| 737 | else |
| 738 | return false; |
| 739 | } |
| 740 | // Call this function to get the team that a connecting player should be placed on |
| 741 | // Callsign and network address of the player MUST be filled in at this point |
| 742 | // PXO id must also be set if mastertracker game |
no test coverage detected