2005-12-16 18:10:38 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
2006-01-15 15:59:11 +00:00
|
|
|
* InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
|
2005-12-16 18:10:38 +00:00
|
|
|
* E-mail:
|
2006-01-15 15:59:11 +00:00
|
|
|
* <brain@chatspike.net>
|
|
|
|
* <Craig@chatspike.net>
|
2005-12-16 18:10:38 +00:00
|
|
|
*
|
|
|
|
* Written by Craig Edwards, Craig McLure, and others.
|
|
|
|
* This program is free but copyrighted software; see
|
|
|
|
* the file COPYING for details.
|
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "users.h"
|
2006-04-20 18:55:46 +00:00
|
|
|
#include "commands/cmd_motd.h"
|
2005-12-16 18:10:38 +00:00
|
|
|
|
2006-09-03 00:09:38 +00:00
|
|
|
extern "C" command_t* init_command(InspIRCd* Instance)
|
|
|
|
{
|
|
|
|
return new cmd_motd(Instance);
|
|
|
|
}
|
|
|
|
|
2006-09-15 14:25:10 +00:00
|
|
|
/** Handle /MOTD
|
|
|
|
*/
|
2006-09-06 17:21:59 +00:00
|
|
|
CmdResult cmd_motd::Handle (const char** parameters, int pcnt, userrec *user)
|
2005-12-16 18:10:38 +00:00
|
|
|
{
|
2006-10-01 11:49:37 +00:00
|
|
|
if (!pcnt)
|
|
|
|
user->ShowMOTD();
|
2006-09-06 17:21:59 +00:00
|
|
|
return CMD_SUCCESS;
|
2005-12-16 18:10:38 +00:00
|
|
|
}
|