summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/chat.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index ada7ab16..b7c02283 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -548,6 +548,9 @@ void ChatWindow::autoComplete()
if (newName != "")
{
+ if(inputText[0] == '@' || inputText[0] == '/')
+ newName = "\"" + newName + "\"";
+
mChatInput->setText(inputText.substr(0, startName) + newName
+ inputText.substr(caretPos, inputText.length() - caretPos));