X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_time.cpp;h=535bf48a5b434700ed278b17899c9c29ad1e0003;hb=b0e469b0bbdbc76692364e1f52ef613cc02a2a06;hp=e5ed1c183e5d2c531ba721927386683187cdb5d5;hpb=76ebc88ccd6fef0bf2d97b607829fb3466e273af;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_time.cpp b/src/cmd_time.cpp index e5ed1c183..535bf48a5 100644 --- a/src/cmd_time.cpp +++ b/src/cmd_time.cpp @@ -2,26 +2,27 @@ * | 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 #include "configreader.h" #include "users.h" -#include "commands.h" -#include "helperfuncs.h" #include "commands/cmd_time.h" -void cmd_time::Handle (const char** parameters, int pcnt, userrec *user) + + +extern "C" command_t* init_command(InspIRCd* Instance) +{ + return new cmd_time(Instance); +} + +CmdResult cmd_time::Handle (const char** parameters, int pcnt, userrec *user) { struct tm* timeinfo; time_t local = ServerInstance->Time(); @@ -33,5 +34,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; }