X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_time.cpp;h=97f4eb5ae5201028518ed3e3561526d66552c047;hb=4cc6e5e14fdbde499481dbab5ab2ad1257b8af9c;hp=04005a9a73f26c89b5b403c4d3f764d1cf0f184e;hpb=1b7c615062a7b203c7fc3ce4c56e16eb671f7c15;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_time.cpp b/src/cmd_time.cpp index 04005a9a7..97f4eb5ae 100644 --- a/src/cmd_time.cpp +++ b/src/cmd_time.cpp @@ -2,30 +2,26 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * + * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * See: http://www.inspircd.org/wiki/index.php/Credits * - * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see * the file COPYING for details. * * --------------------------------------------------- */ -#include "configreader.h" -#include "users.h" +#include "inspircd.h" #include "commands/cmd_time.h" -extern "C" command_t* init_command(InspIRCd* Instance) +extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_time(Instance); + return new CommandTime(Instance); } -void cmd_time::Handle (const char** parameters, int pcnt, userrec *user) +CmdResult CommandTime::Handle (const char** parameters, int pcnt, User *user) { struct tm* timeinfo; time_t local = ServerInstance->Time(); @@ -37,5 +33,6 @@ void cmd_time::Handle (const char** parameters, int pcnt, userrec *user) tms[24] = 0; user->WriteServ("391 %s %s :%s",user->nick,ServerInstance->Config->ServerName,tms); - + + return CMD_SUCCESS; }