I'm working with H_notc builtin and i'm getting this error when the function is called:
[01:29] Tcl error [*notc:*]: wrong # args: should be "*notc:* nick user@host handle desto/chan keyword/nick text"
at this time the code is:
Code: Select all
static int notc_test (char *nick, char *uhost, struct userrec *u, char *dest, char *arg) {
putlog(LOG_CMDS, "*", "notc is working");
return 0;
}
static cmd_t notc_cmd[] = {
{"*", "", notc_test, NULL},
{0, 0, 0, 0}
};
char *nick, char *uhost, char *hand, char *dest, char *arg
thanks
pedro