Bug 3497 - Wrong variable is compared to MAX_ in G_admin_readconfig
Status: RESOLVED FIXED
Alias: None
Product: Tremulous
Classification: Unclassified
Component: Admin system
Version: SVN HEAD
Hardware: All All
: P3 minor
Assignee: Tony J. White
QA Contact: Tremulous Bugs
URL:
Depends on:
Blocks:
 
Reported: 2008-01-01 14:31 EST by Ben Millwood
Modified: 2008-01-18 19:12:05 EST
0 users

See Also:


Attachments
s/bc/cc/ (430 bytes, patch)
2008-01-01 14:32 EST, Ben Millwood

Description Ben Millwood 2008-01-01 14:31:05 EST
We've all known about bugs with [command] blocks but no-one seems to have looked into it.
This appears to be the cause: the number of bans, not the number of commands, is compared with MAX_ADMIN_COMMANDS.
One-character fix coming right up.
Comment 1 Ben Millwood 2008-01-01 14:32:00 EST
Created attachment 1633 [details]
s/bc/cc/

Use command count instead of ban count when testing to see how many we have.
Comment 2 Tim Angus 2008-01-18 19:12:05 EST
Fixed in r1055.