static cmd_t mtxhi_pub[] = {
{"!hi", "", pub_hi, NULL},
{NULL,NULL, NULL , NULL}
};
This will call pub_hi, when user type !hi, but how can i get any typed text ??
i try with "", but ...........

(sorry for my bad english)
Any ideas ?
Code: Select all
static int mymod_pubm(char *nick, char *host, char *handle, char *channel, char *text) {
return 0;
}
static cmd_t mymod_pubm_tbl[] = {
{"*", "", mymod_pubm, NULL},
{NULL, NULL, NULL, NULL}
};
Code: Select all
add_builtins(H_pubm, mymod_pubm_tbl);