summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index b9e11dad..1e22772b 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -250,7 +250,7 @@ void
ChatWindow::whisper(const std::string &nick, std::string msg, int prefixlen)
{
std::string recvnick = "";
- msg.erase(0, prefixlen);
+ msg.erase(0, prefixlen + 1);
if (msg.substr(0,1) == "\"")
{
@@ -539,7 +539,7 @@ void ChatWindow::help(const std::string &msg1, const std::string &msg2)
{
chatLog("Command: /whisper <nick> <msg>", BY_SERVER);
chatLog("Command: /w <nick> <msg>", BY_SERVER);
- chatLog("This command sends the message <msg> to <nick.", BY_SERVER);
+ chatLog("This command sends the message <msg> to <nick>.", BY_SERVER);
chatLog("If the <nick> has spaces in it, enclose it in "
"double quotes (\").", BY_SERVER);
return;