-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor chat commands to allow console execution #52
Conversation
2f071d3
to
e2b3797
Compare
e2b3797
to
ddc0336
Compare
It's useless when the lower byte is always the player slot.
ddc0336
to
d9385f1
Compare
src/adminsystem.cpp
Outdated
return; | ||
if (args.ArgC() < 3) | ||
{ | ||
ClientPrint(player, HUD_PRINTTALK, CHAT_PREFIX "Usage: !mute <name> <duration/0 (permanent)>"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You sure we don't want this to be shown for the console too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They should be shown, I just missed them...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ban command isn't updated to allow for console execution
also remove EntityFromHandle as it was redundant
and remove generichash.cpp, it's already compiled in tier1
Most commands (mainly admin ones) can now be used directly from the server console or rcon. I've also cleaned up some repetitive printing code and fixed #51.