summaryrefslogtreecommitdiff
path: root/src/cmd_away.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_away.cpp')
-rw-r--r--src/cmd_away.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_away.cpp b/src/cmd_away.cpp
index 6843ed4e1..64c16e914 100644
--- a/src/cmd_away.cpp
+++ b/src/cmd_away.cpp
@@ -27,7 +27,7 @@
void cmd_away::Handle (const char** parameters, int pcnt, userrec *user)
{
- if (pcnt)
+ if ((pcnt) && (*parameters[0]))
{
strlcpy(user->awaymsg,parameters[0],MAXAWAY);
user->WriteServ("306 %s :You have been marked as being away",user->nick);