Prevent clients from spamming global chat using sm_nominate#1217
Prevent clients from spamming global chat using sm_nominate#1217asherkin merged 2 commits intoalliedmodders:masterfrom Douile:patch-1
Conversation
Using the nominate command it is possible to spam global chat by alternating between two maps e.g. `bind mwheeldown "sm_nominate de_dust2;sm_nominate de_mirage;"` By replying to successful nominations instead of putting in global this issue is prevented as clients can only spam themselves.
|
How do you feel about broadcasting it if the result is not |
|
@asherkin I do think it would be useful to see nominations globally. The only other way I see to fix is by adding some kind of rate limiting to the command. |
Douile
left a comment
There was a problem hiding this comment.
Yeah that seems like a better idea than never printing globally
Co-Authored-By: Asher Baker <[email protected]>
asherkin
left a comment
There was a problem hiding this comment.
LGTM, thanks for the contribution!
|
@asherkin You can do something similar with votes and sm_revote - should this be changed similarly? |
Using the nominate command it is possible to spam global chat by alternating between two maps e.g.
bind mwheeldown "sm_nominate de_dust2;sm_nominate de_mirage;"By replying to successful nominations instead of putting in global this issue is prevented as clients can only spam themselves.