1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
19 #include "inspircd_config.h"
21 #include "inspircd_io.h"
33 #include "inspstring.h"
35 #include "helperfuncs.h"
40 extern ServerConfig* Config;
41 extern InspIRCd* ServerInstance;
43 void cmd_away::Handle (char **parameters, int pcnt, userrec *user)
47 strlcpy(user->awaymsg,parameters[0],MAXAWAY);
48 WriteServ(user->fd,"306 %s :You have been marked as being away",user->nick);
52 strlcpy(user->awaymsg,"",MAXAWAY);
53 WriteServ(user->fd,"305 %s :You are no longer marked as being away",user->nick);