diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_away.cpp | 2 |
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); |