summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
AgeCommit message (Collapse)Author
2013-01-03* Refactor some more admin codeM. Kristall
* Let !cancelvote and !passvote accept a team name argument
2013-01-03* (bug 4037) cgame forgets to close buildstat.cfgM. Kristall
* Admin searches now list all matches * !listadmins now properly handles negative numbers * "!ban: too many bans" errors were sometimes wrong * A bit of refactoring * Add %s support to sscanf
2013-01-03* One-line fix admin name formattingBen Millwood
2013-01-03* Partially revert rev 1182 (null deref)M. Kristall
2013-01-03* Require each client to have a unique, valid GUIDM. Kristall
2013-01-03* Fix a small bug in g_adminMaxBan (thanks ben)Christopher Schwarz
2013-01-03* (bug 3993) ban length limits (Rezyn)Christopher Schwarz
2013-01-03* (bug 3992) Add search abilities to !showbans (Rezyn)Christopher Schwarz
2013-01-03* (bug 2803) Tighten some spelling/grammar/typos in various places (Phil ↵Christopher Schwarz
Bordelon, Ben Millwood)
2013-01-03* (bug 3969) Fix overflow warnings in !showbans (Rezyn) Christopher Schwarz
2013-01-03* (bug 3354) Add /clientlist cgame command for listing connected clients (DevHC)Christopher Schwarz
* Remove ADMF_SEESFULLLISTPLAYERS and return !listplayers to the old default value of always listing everything. Servers can now freely disallow !listplayers from non-admins, who can use /clientlist (or the GUI) to obtain the info they need.
2013-01-03* Remove another pointless va()M. Kristall
* g_adminNameProtect is now properly disabled when 0 * Do not remove admins with negative levels (if any such levels exist) * Fix admin level name alignment in !listplayers and !listadmins * Fix some !showbans regressions + !showbans -1 was showing the last two bans + !showbans -1 was not working with only 1 ban * Fix a ptr error message
2013-01-03 * Add BG_EventName and use it to simplify a series of debugging messagesBen Millwood
* Correct crouch check in ClientTimerActions * Ensure animation togglebit on buildables is only used once per frame (bug 3377) * Make G_FloodLimited more robust and with a pointlessly informative return value * Add a brief comment to the G_SayArg* functions to explain their purpose, which wasn't at all clear to me until I experimented with them * Remove more redundant va()s * Remove an unused variable and associated functions that were causing a compiler warning
2013-01-03* Fix minor omission in !help kick (das-Iro) Christopher Schwarz
2013-01-03 * Remove extra trailing newline from admin chat commands (oops)Ben Millwood
* Rename private message, admin message functions for consistency * Cancel a reload when switching weapons, and prevent reloading a full clip * Simplify admin command formatting and in doing so prevent some compiler warnings on OS X * Fix some admin messages (s/kicked/banned/, no bans to show, can't perm ban) * Have tremulous_alien_common_hud include tremulous_common_hud since they're always used together anyway * Remove some redundant uses of va()
2013-01-03* Handle some broken admin.dat files the same as beforeM. Kristall
* Make G_TeamName BG_TeamName and use it in cgame for team change messages * Don't use an event for team change notification since clients already know
2013-01-03* Add functions G_TeamName and G_TeamFromStringM. Kristall
* Log team changes whenever a team change occurs (not just when using /team) * Do not allow admins without ADMF_CAN_PERM_BAN (flag 8) to remove or modify permanent bans
2013-01-03* Fix a buffer overflow introduced in revision 1121M. Kristall
* Admin parsing stuff: * Report the (theoretically) correct line number in parse error messages * Prevent an overflow in [command] section (levels) * Try to make the code flow a little better * !readconfig errors all get sent to console
2013-01-03* Add the /a command, which sends a message to all active adminsChristopher Schwarz
* Using and receiving messages from this command is controled by the admin flag '?' * This flag is granted to levels 3, 4, 5 by default * The /a command can be parsed from in chat text, and also from the server console * New cvar g_publicAdminMessages (0|1) default: 1. Allows or disallows users without flag '?' to send messages to admins (but not receieve them).
2013-01-03* (bug 3379) !adjustban command to change reason and duration of bans (flag b)M. Kristall
* (bug 3746) Lookup table for UI commands (Ben Millwood) * and some other refactoring * Fix a couple null dereferences introduced in 1120
2013-01-03 * Flood protection in chat and admin commandsBen Millwood
(thanks to Phil Bordelon, Chris "Lakitu7" Schwarz, and M. Kristall)
2013-01-03* (bug 2965) Strip colour codes from log messages (Ben Millwood)M. Kristall
* (bug 3596) Buying a battlesuit allows player to pass through some map geometry (/dev/humancontroller) * (bug 3679) Remove redundant stage trigger checks (Chris "Lakitu7" Schwartz) * (bug 3761) selling all upgrades removes energy ammo (/dev/humancontroller) * Remove some duplicate code * !showbans did not properly show all valid bans when some bans had expired * Log renames between ClientConnect and ClientBegin
2013-01-03* (bug 3719) IP address fields in admin system are not large enough for IPv6M. Kristall
(Amanieu) * Prevent the host player on a non-dedicated server from being disconnected
2013-01-03* (bug 3673) Add boundary checking to G_SanitiseName() and G_DecolorString()M. Kristall
* s/G_SanitiseName/G_SanitiseString/ * s/trap_Printf/trap_Print/ * Change a few occurences of MAX_STRING_CHARS to MAX_NAME_LENGTH
2013-01-03* (bug 3631) Macro safety for MIN() and MAX() (Ben Millwood)M. Kristall
* (bug 3645) Lag correction field in server info menus is always empty (Ben Millwood) * (bug 3653) stack corruption in G_SendGameStat() (/dev/humancontroller) * (bug 3662) Players who fall of the edge of the world can block the spawn queue (/dev/humancontroller) * Remove unused argument to G_ClientNumberFromString() * Remove unused variables in G_admin_setlevel() * Remove a number of superfluous va()s * Shut up erroneous warnings about uninitialized variables
2013-01-03* bug 3599 was still occuring if !setlevel was used by admin name and the adminM. Kristall
was connected with a different name
2013-01-03* (bug 3595) /sell upgrades doesn't change player model for battlesuitM. Kristall
(Ben Millwood) * (bug 3599) adminLevel can be wrong * Reorder *Attributes_t arrays to match corresponding enums * Simplify BG_Buildable, BG_Class, BG_Weapon, and BG_Upgrade * Remove a couple unnecessary config string hacks * !unmute was saying !mute in some messages
2013-01-03* Fix a couple more places where files might not be closed (bug 3554)M. Kristall
* Fix off-by-one errors and some gcc warnings
2013-01-03* Merge clientSession_t::sessionTeam and clientSession_t::spectatorStateTim Angus
* Remove existing team_t (TEAM_FREE, TEAM_SPECTATOR) * s/pTeam_t/team_t/;s/buildableTeam_t/team_t/;s/WUTeam_t/team_t/ * s/pClass_t/class_t/ * s/PERS_TEAM/PERS_SPECSTATE/ * s/STAT_PTEAM/STAT_TEAM/;s/STAT_PCLASS/STAT_CLASS/
2013-01-03* Consolidate memory allocation into bg_alloc.cTim Angus
2013-01-03* (bug 3057) Granger breaks under certain conditions (Risujin)M. Kristall
* (bug 3256) G_admin_print to a tty should not decolour if com_ansiColor is set (Ben Millwood) * (bug 3392) Console is affected by flag @ (Chris "Lakitu7" Schwarz) * Automatically load default admin levels when g_admin is disabled, since admin commands can still be used (since r894) * Make return value of G_SelectiveRadiusDamage useful and use it for Overmind and Reactor attacks * /entitylist was skipping entity 0 * Check original search string against IP and slot number for !ban * Preserve score and ping so they are always reported correctly * Random refactoring and formatting fixes
2013-01-03* (bug 3480) A reactor that has not yet exploded still gives power (benmachine)Tim Angus
* (bug 3492) G_SelectiveRadiusDamage called too many times in HReactor_Think (benmachine) * (bug 3497) Wrong variable is compared to MAX_ in G_admin_readconfig (benmachine)
2013-01-03*(bug 3280) Changed the default behaviour of !listplayers. The fieldsTony J. White
representing guid stub, admin level and A.K.A. are now omitted unless the player running !listplayers has the new $ flag set. To restore the old behaviour, set the $ flag on all your existing [level] definitions in admin.dat. (Lakitu7)
2007-09-25* (bug 3307) use boundary checking to prevent potential buffer overflowM. Kristall
* (bug 2969) limit number of players to g_maxGameClients * use G_TeamCommand() for team vote messages
2007-09-16* (bug 3096) bans sometimes fail inexplicablyM. Kristall
2007-07-16* (bug 3047) send team commands to spectating admins who can see team chatM. Kristall
* remove some more redundant checks and fix some command flags * fix a number of spelling misteaks in messages * show denybuild indicator in !listplayers
2007-07-09* (bug 3251) make return consistent for admin check (benmachine)M. Kristall
* show message when trying to get help for a command you cannot use
2007-07-04* fix denybuild thing correctly...M. Kristall
2007-06-29* fix a silly issue in !passvote and !cancelvote that could potentially haveM. Kristall
undesired effects * correct some copy-paste action in my last commit
2007-06-20* take away blue print when a player's building rights are deniedM. Kristall
* don't spam message when !putteam won't do anything
2007-06-05(bug 3104) save the correct variables for players who disconnect and come backM. Kristall
(bug 3161) do not allow two clients to have the same name (Chris Schwarz) (bug 3205) let aliens move eggs when humans only have one node (Roman Tetelman)
2007-03-25* ingame menus redesignedTony J. White
* spectators can now participate in non-team votes * added teamvote "admitdefeat" * replaced "nextmap" vote with "draw" * removed vote "clientkick" vote (uses "kick" instead) * removed teamvote "teamclientkick" (uses "kick" instead) * renamed teamvote "teamkick" to teamvote "kick" * added teamvote "denybuild" and "allowbuild" * added vote "mute" and "unmute" * added !denybuild and !allowbuild g_admin commands * added /ignore and /unignore commands (and menu support) * Game -> Info (formerly About) shows server settings instead of local ones * Voting keys can now be configured in the Options menu * Voting key binds now display with the vote status (F3 and F4 will be the eventual default binds for "teamvote yes" and "teamvote no" respectively)
2007-03-13* (bug 3052) fix issues with !ban and !namelog when multiple players have theTony J. White
same IP/GUID. Also give slot number precedence for !ban.
2007-03-03* (bug 3008) track when map and map_restart commands are added to the commandTony J. White
buffer with level.restarted. This prevents G_RunFrame() from running until the command is processed by the server code.
2007-01-03* (bug 2996) better support for using "!" commands when g_admin isTony J. White
disabled. * (bug 2973) account for the *BUILTIN* layout in the count returned by G_LayoutList() * !readconfig now clears all g_admin data properly even if there is an error reading or no g_admin data file is defined
2006-12-31* (bug 2954) g_admin commands can not be used from the server console evenTony J. White
if g_admin is not set to a file. This allows the !kick and !ban commands to work for the current game even if there is no g_admin data file. Updated vote cmds to always use !ban instead of clientkick.
2006-12-31* (bug 2973) added a special name for the map's built-in layout "*BUILTIN*"Tony J. White
so this can be named in the list of layouts to be selected from without having to create a .dat file for it.
2006-12-30* (bug 2973) allow '-' and '_' in layout names and check to make sure layoutsTony J. White
named in !map and !restart commands are valid names
2006-12-29* (bug 2973) support for multiple initial base layouts ( Risujin, vcxzet, tjw )Tony J. White
2006-12-12* (bug 2954) when g_admin is enabled use !ban [ip] instead of !kick [slot]Tony J. White
on vote kicks. this is to deal with people disconnecting before the vote ends to avoid the temp ban and prevents an innocent from grabbing the slot only to be kicked when the vote ends. * fix duration parsing for the g_admin !ban command when time is in seconds