From 3044b0db605f671a5c2c42be02b8a586efddffcc Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 7 Jan 2024 16:59:04 +0100 Subject: [PATCH] update to plugin 7 --- plugins/plugin_ircclient.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/plugin_ircclient.cpp b/plugins/plugin_ircclient.cpp index 478d9be..413f6af 100644 --- a/plugins/plugin_ircclient.cpp +++ b/plugins/plugin_ircclient.cpp @@ -82,10 +82,12 @@ SOLANA_PLUGIN_EXPORT void solana_plugin_stop(void) { g_ircc.reset(); } -SOLANA_PLUGIN_EXPORT void solana_plugin_tick(float delta) { +SOLANA_PLUGIN_EXPORT float solana_plugin_tick(float delta) { (void)delta; //std::cout << "PLUGIN IRCC TICK()\n"; - g_ircc->iterate(); + g_ircc->iterate(); // TODO: return interval, respect dcc etc + + return 1.f; // expect atleast once per sec } } // extern C