コード例 #1
0
void _modinit(module_t *m)
{
    // register a handler function for when a user posts a message in a channel
    hook_add_event("channel_message");
    hook_add_channel_message(on_channel_message);

    // register a handler function for when a user joins a channel
    hook_add_event("channel_join");
    hook_add_channel_join(on_channel_join);
}
コード例 #2
0
void _modinit(module_t *m)
{
	hook_add_event("channel_message");
	hook_add_channel_message(on_channel_message);
}