From 39a3660ebd2812f618f072d726ba356114f914b1 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 18 Aug 2006 18:10:37 +0000 Subject: 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 --- src/cmd_away.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3