Skip to content
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

Add warn command #240

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add warn command #240

wants to merge 1 commit into from

Conversation

voidanix
Copy link
Member

Before this commit, warnings sent by moderators were not a real thing:
they were simple messages with some cool blinking yellow.

Add an actual warn command that respects the syntax of existing moderation
commands, that is /command cn reason.

By default only moderators can warn players; this can be modified with
the new warnlock variable.

Before this commit, warnings sent by moderators were not a real thing:
they were simple messages with some cool blinking yellow.

Add an actual warn command that respects the syntax of existing moderation
commands, that is `/command cn reason`.

By default only moderators can warn players; this can be modified with
the new `warnlock` variable.
else if (flags&SAY_WARNING)
{
defformatstring(swarn, "%s\fzwy, ", game::colourname(t));
prependstring(msg, swarn);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would have been way easier with std::string, we need to find time for that someday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant