All pastes #832742 Raw Edit

Something

public text v1 · immutable
#832742 ·published 2007-12-26 15:52 UTC
rendered paste body
#include "module.h"

#define AUTHOR "Anope"
#define VERSION "1.0.0"

int i_meow(User *u);

int AnopeInit(int argc, char **argv) {

    Command *c;
    c = createCommand("meow", i_meow, NULL, -1, -1, -1, -1, -1);
    alog("i_meow: Add command 'meow' status: %d", moduleAddCommand(NICKSERV, c, MOD_HEAD));
    moduleAddAuthor(AUTHOR);
    moduleAddVersion(VERSION);
    return MOD_CONT;
}

void AnopeFini(void) {
}

int i_meow(User *u) {
    notice(s_Nickserv, u->nick, "MEOW! Specially for you \002%s\002 ;)", u->nick);

    /* Halt processing */
    return MOD_STOP;
}