diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-18 18:10:37 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-18 18:10:37 +0000 |
commit | 39a3660ebd2812f618f072d726ba356114f914b1 (patch) | |
tree | bbf442ca88c1526e83e8a362cba92d426c9ef6f5 /src | |
parent | f013dc094d22e5f057ec814a16447df919a88129 (diff) |
Dont allow an empty away message (im not sure what the RFC says on this one sts)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4966 e03df62e-2008-0410-955e-edbf42e46eb7
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); |