shadowircd / extensions / m_42.c

/*
 *   Copyright (C) infinity-infinity God <God@Heaven>
 *
 *   Bob was here 
 *   $Id: m_42.c 3161 2007-01-25 07:23:01Z nenolod $
 */

#include "stdinc.h"
#include "modules.h"
#include "client.h"
#include "ircd.h"
#include "send.h"

static int mclient_42(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);

struct Message hgtg_msgtab = {
  "42", 0, 0, 0, MFLG_SLOW,
  { mg_ignore, {mclient_42, 0}, mg_ignore, mg_ignore, mg_ignore, {mclient_42, 0}
  }
};

mapi_clist_av1 hgtg_clist[] = { &hgtg_msgtab, NULL };


DECLARE_MODULE_AV1(42, NULL, NULL, hgtg_clist, NULL, NULL, "Revision 0.42");


static int
mclient_42(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
{
	sendto_one_notice(source_p, ":The Answer to Life, the Universe, and Everything.");
	return 0;
}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.