diff options
author | dequis <dx@dxzone.com.ar> | 2016-12-25 20:41:13 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2016-12-25 21:20:09 -0300 |
commit | 6d212f401cf7eeb3eabe315e610578f5aac74607 (patch) | |
tree | 720a2c2e70667d0b57559ef3dba47cbba787d540 /protocols | |
parent | 7486853ca817c0e6d0a5b3d1b702d6bd8e96bf4e (diff) |
purple: include purple plugins in the 'plugins' command list
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/purple/purple.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c index 8b3b8c7c..49c1ee7c 100644 --- a/protocols/purple/purple.c +++ b/protocols/purple/purple.c @@ -1640,6 +1640,10 @@ static void purple_ui_init() } } +/* borrowing this semi-private function + * TODO: figure out a better interface later (famous last words) */ +gboolean plugin_info_add(struct plugin_info *info); + void purple_initmodule() { struct prpl funcs; @@ -1740,6 +1744,7 @@ void purple_initmodule() PurplePlugin *prot = prots->data; PurplePluginProtocolInfo *pi = prot->info->extra_info; struct prpl *ret; + struct plugin_info *info; /* If we already have this one (as a native module), don't add a libpurple duplicate. */ @@ -1774,6 +1779,16 @@ void purple_initmodule() ret->data = NULL; register_protocol(ret); } + + info = g_new0(struct plugin_info, 1); + info->abiver = BITLBEE_ABI_VERSION_CODE; + info->name = ret->name; + info->version = prot->info->version; + info->description = prot->info->description; + info->author = prot->info->author; + info->url = prot->info->homepage; + + plugin_info_add(info); } g_string_append(help, "\n\nFor used protocols, more information about available " |