X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/fb38e2bcac60ef70a5515bc2a2c2f308b4d58280..2dddcd742b32cc37e3f7b7040869004c67b3e061:/src/hash.h diff --git a/src/hash.h b/src/hash.h index 4ffeb10..67748f4 100644 --- a/src/hash.h +++ b/src/hash.h @@ -398,8 +398,8 @@ void StampUser(struct userNode *user, const char *stamp, time_t timestamp); void assign_fakehost(struct userNode *user, const char *host, int announce); void set_geoip_info(struct userNode *user); -typedef void (*new_channel_func_t) (struct chanNode *chan); -void reg_new_channel_func(new_channel_func_t handler); +typedef void (*new_channel_func_t) (struct chanNode *chan, void *extra); +void reg_new_channel_func(new_channel_func_t handler, void *extra); typedef int (*join_func_t) (struct modeNode *mNode, void *extra); void reg_join_func(join_func_t handler, void *extra); typedef void (*del_channel_func_t) (struct chanNode *chan); @@ -424,8 +424,8 @@ void ChannelUserKicked(struct userNode* kicker, struct userNode* victim, struct int ChannelBanExists(struct chanNode *channel, const char *ban); int ChannelExemptExists(struct chanNode *channel, const char *exempt); -typedef int (*topic_func_t)(struct userNode *who, struct chanNode *chan, const char *old_topic); -void reg_topic_func(topic_func_t handler); +typedef int (*topic_func_t)(struct userNode *who, struct chanNode *chan, const char *old_topic, void *extra); +void reg_topic_func(topic_func_t handler, void *extra); void SetChannelTopic(struct chanNode *channel, struct userNode *service, struct userNode *user, const char *topic, int announce); struct userNode *IsInChannel(struct chanNode *channel, struct userNode *user);