mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 00:46:21 +00:00
Integrated plugins with /help command
This commit is contained in:
@@ -143,3 +143,18 @@ plugins_run_timed(void)
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
GList*
|
||||
plugins_get_command_names(void)
|
||||
{
|
||||
GList *result = NULL;
|
||||
|
||||
GSList *curr = p_commands;
|
||||
while (curr) {
|
||||
PluginCommand *command = curr->data;
|
||||
result = g_list_append(result, (char*)command->command_name);
|
||||
curr = g_slist_next(curr);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -101,6 +101,7 @@ void plugins_post_priv_message_send(const char * const jid, const char * const
|
||||
|
||||
gboolean plugins_run_command(const char * const cmd);
|
||||
void plugins_run_timed(void);
|
||||
GList* plugins_get_command_names(void);
|
||||
gchar * plugins_get_dir(void);
|
||||
CommandHelp* plugins_get_help(const char *const cmd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user