diff --git a/src/irc/core/channel-events.c b/src/irc/core/channel-events.c index 0cdb47fd..85d985ea 100644 --- a/src/irc/core/channel-events.c +++ b/src/irc/core/channel-events.c @@ -177,7 +177,7 @@ static void set_topic_info(CHANNEL_REC *const chanrec, char const *const setby, } } -void event_topic_get(IRC_SERVER_REC *server, const char *data) +static void event_topic_get(IRC_SERVER_REC *server, const char *data) { char *params, *channel, *topic; @@ -188,7 +188,7 @@ void event_topic_get(IRC_SERVER_REC *server, const char *data) g_free(params); } -void event_topic(IRC_SERVER_REC *server, const char *data, +static void event_topic(IRC_SERVER_REC *server, const char *data, const char *nick, const char *addr) { char *params, *channel, *topic, *mask; @@ -203,7 +203,7 @@ void event_topic(IRC_SERVER_REC *server, const char *data, g_free(params); } -void event_topic_info(IRC_SERVER_REC *server, const char *data) +static void event_topic_info(IRC_SERVER_REC *server, const char *data) { char *params, *channel, *topicby, *topictime; time_t t; diff --git a/src/irc/core/channel-events.h b/src/irc/core/channel-events.h index f0dea8b4..6d01c48e 100644 --- a/src/irc/core/channel-events.h +++ b/src/irc/core/channel-events.h @@ -3,10 +3,7 @@ #include "irc.h" -/* Not private for tests. */ -void event_topic_get(IRC_SERVER_REC *, const char *); -void event_topic(IRC_SERVER_REC *, const char *, - const char *, const char *); -void event_topic_info(IRC_SERVER_REC *, const char *); +void channel_events_init(void); +void channel_events_deinit(void); #endif