-
Notifications
You must be signed in to change notification settings - Fork 2k
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 ability to escape commands with a back-slash #1768
Conversation
👎 |
👎 Same reason as sfan5 |
@sfan5: That prepends a space to your message though. I don't think IRC clients use this method while all of their users want a different method, they didn't just chose a random method. The fact that this is in IRC clients means that users want it and find that this method is a good way to escape it. |
👍 It makes sense, many IRC clients do that already. |
👍 Apart from Calinou's reason, it adds a way to discourage silly command names like WE had. |
I'd much prefer the ./command style, for some reason it just feels better. Then again, I've probably played too much MC. |
|
Holy shit. a space. What is so bad about a space? |
@sfan5: It's a hack, a workaround rather than a proper fix. |
I'm for backslash |
0943561
to
59e0ad1
Compare
Rebased and changed to back-slash. |
👍 |
LocalPlayer *player = m_env.getLocalPlayer(); | ||
assert(player != NULL); | ||
std::wstring name = narrow_to_wide(player->getName()); | ||
m_chat_queue.push((std::wstring)L"<" + name + L"> " + message); | ||
m_chat_queue.push((std::wstring)L"<" + name + L"> " + | ||
(message[0] == L'\\' ? message.substr(1) : message)); |
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.
Actually this code does not do what the description says.
Currently if I were to type in "\foobar" it would get changed to "foobar".
What this is supposed to do is "\/foobar" -> "/foobar" and only that.
Okay, but i doubt we add them up like that, 2 approvals remain 2 approvals despite dissapprovals. |
I have to fix the bit sfan5 reported before this is ready. It's fairly trivial, I've just been busy with other things. |
I'm with @sfan5 on this, but I guess I could live with it. Non-issue for me. |
Sorry, I still don't have much time for this. Someone else could fix this quite easily and merge it since it's already approved. |
disapprovals don't count anymore? |
Er, I'm not sure what it adds up to. |
Disapprovals don't subtract from approvals, so this technically has 2 approvals, counting one from the core dev author. However it is good dev practice to address objections. |
Players shouldn't make the command be shown as their chat message just to tell other players how to use the command. |
@HybridDog adding space is what i do on... skype, IRC, gitlab, slack... everywhere, and it's more natural |
Rationale: Useful when telling a user to run a specific command.
Older clients will see the back slash on their display when they send a message, and older servers will show the backslash on all other displays.