Skip to content

Commit

Permalink
imap-old-stats plugin: Finish renaming the plugin
Browse files Browse the repository at this point in the history
The init functions and dependency were named wrong, so it didn't work.
  • Loading branch information
sirainen committed Dec 22, 2017
1 parent 8907434 commit 2f07845
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/plugins/imap-old-stats/imap-stats-plugin.c
Expand Up @@ -114,15 +114,15 @@ static void stats_command_post(struct client_command_context *cmd)
stats_connection_send(suser->stats_conn, str);
}

void imap_stats_plugin_init(struct module *module ATTR_UNUSED)
void imap_old_stats_plugin_init(struct module *module ATTR_UNUSED)
{
command_hook_register(stats_command_pre, stats_command_post);
}

void imap_stats_plugin_deinit(void)
void imap_old_stats_plugin_deinit(void)
{
command_hook_unregister(stats_command_pre, stats_command_post);
}

const char *imap_stats_plugin_dependencies[] = { "stats", NULL };
const char *imap_stats_plugin_dependencies[] = { "old_stats", NULL };
const char imap_stats_plugin_binary_dependency[] = "imap";
4 changes: 2 additions & 2 deletions src/plugins/imap-old-stats/imap-stats-plugin.h
Expand Up @@ -6,7 +6,7 @@ struct module;
extern const char *imap_stats_plugin_dependencies[];
extern const char imap_stats_plugin_binary_dependency[];

void imap_stats_plugin_init(struct module *module);
void imap_stats_plugin_deinit(void);
void imap_old_stats_plugin_init(struct module *module);
void imap_old_stats_plugin_deinit(void);

#endif

0 comments on commit 2f07845

Please sign in to comment.