#include "modules.h"
#include "packet.h"
-static int m_time(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static const char time_desc[] =
+ "Provides the TIME command to show the current server time";
+
+static void m_time(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static char *date(void);
struct Message time_msgtab = {
};
mapi_clist_av1 time_clist[] = { &time_msgtab, NULL };
-DECLARE_MODULE_AV2(time, NULL, NULL, time_clist, NULL, NULL, NULL, NULL, NULL);
+DECLARE_MODULE_AV2(time, NULL, NULL, time_clist, NULL, NULL, NULL, NULL, time_desc);
static const char *months[] = {
"January", "February", "March", "April",
* m_time
* parv[1] = servername
*/
-static int
+static void
m_time(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
{
/* this is not rate limited, so end the grace period */
if(hunt_server(client_p, source_p, ":%s TIME :%s", 1, parc, parv) == HUNTED_ISME)
sendto_one_numeric(source_p, RPL_TIME, form_str(RPL_TIME),
me.name, date());
-
- return 0;
}
/* date()