X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_time.c;h=ca8e83018c7763a71109c9f586897bdc8ffbf69f;hb=refs%2Fheads%2Fupstream-ssl;hp=c7d3561c5c00d039fd0c1d875dd669bd474ae953;hpb=36ab1bb01f9a0f5f630f3098b1afdc5ccc937fa6;p=ircu2.10.12-pk.git diff --git a/ircd/m_time.c b/ircd/m_time.c index c7d3561..ca8e830 100644 --- a/ircd/m_time.c +++ b/ircd/m_time.c @@ -79,16 +79,12 @@ * note: it is guaranteed that parv[0]..parv[parc-1] are all * non-NULL pointers. */ -#if 0 -/* - * No need to include handlers.h here the signatures must match - * and we don't need to force a rebuild of all the handlers everytime - * we add a new one to the list. --Bleep - */ -#include "handlers.h" -#endif /* 0 */ +#include "config.h" + #include "client.h" #include "ircd.h" +#include "ircd_features.h" +#include "ircd_log.h" #include "ircd_reply.h" #include "ircd_string.h" #include "msg.h" @@ -98,7 +94,7 @@ #include "s_user.h" #include "send.h" -#include +/* #include -- Now using assert in ircd_log.h */ /* * m_time - generic message handler @@ -108,27 +104,11 @@ */ int m_time(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) { - if (hunt_server_cmd(sptr, CMD_TIME, cptr, 0, ":%C", 1, parc, parv) != - HUNTED_ISME) + if (hunt_server_cmd(sptr, CMD_TIME, cptr, feature_int(FEAT_HIS_REMOTE), ":%C", + 1, parc, parv) + != HUNTED_ISME) return 0; - send_reply(sptr, RPL_TIME, me.name, TStime(), TSoffset, date((long)0)); + send_reply(sptr, RPL_TIME, cli_name(&me), TStime(), TSoffset, date((long)0)); return 0; } - -#if 0 -/* - * m_time - * - * parv[0] = sender prefix - * parv[1] = servername - */ -int m_time(struct Client *cptr, struct Client *sptr, int parc, char *parv[]) -{ - if (hunt_server(0, cptr, sptr, "%s%s TIME :%s", 1, parc, parv) == HUNTED_ISME) /* XXX DEAD */ - sendto_one(sptr, rpl_str(RPL_TIME), me.name, /* XXX DEAD */ - parv[0], me.name, TStime(), TSoffset, date((long)0)); - return 0; -} -#endif /* 0 */ -