Skip to content

Commit

Permalink
Merge pull request #6 from hoehermann/master
Browse files Browse the repository at this point in the history
Initialize list of dependencies dynamically.
  • Loading branch information
noonien-d authored May 17, 2024
2 parents cdf57be + 3da0b0e commit 88d64bf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions xmpp-receipts.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,6 @@ plugin_unload(PurplePlugin *plugin)
return TRUE;
}

static GList dep = {"prpl-jabber",NULL,NULL};

static PurplePluginInfo info =
{
PURPLE_PLUGIN_MAGIC,
Expand All @@ -353,7 +351,7 @@ static PurplePluginInfo info =
PURPLE_PLUGIN_STANDARD, /**< type */
PIDGIN_PLUGIN_TYPE, /**< ui_requirement */
0, /**< flags */
&dep, /**< dependencies */
NULL, /**< dependencies */
PURPLE_PRIORITY_LOWEST, /**< priority */

"gtk-xmpp-receipts", /**< id */
Expand Down Expand Up @@ -385,8 +383,7 @@ static PurplePluginInfo info =
static void
init_plugin(PurplePlugin *plugin)
{


plugin->info->dependencies = g_list_append(plugin->info->dependencies, "prpl-jabber");
}

PURPLE_INIT_PLUGIN(xmppconsole, init_plugin, info)

0 comments on commit 88d64bf

Please sign in to comment.