#include <stdlib.h>
#include <errno.h>
+#include "gtkplugin.h"
#include "gtkutils.h"
#include "gtkimhtml.h"
.major_version = PURPLE_MAJOR_VERSION,
.minor_version = PURPLE_MINOR_VERSION,
.type = PURPLE_PLUGIN_STANDARD,
+ .ui_requirement = PIDGIN_PLUGIN_TYPE,
.priority = PURPLE_PRIORITY_DEFAULT,
.id = (char *)"chimeseen",
.name = (char *)"Chime Seen",
id[i] = g_random_int_range(0, 256);
}
+static void load_seen_plugin(void)
+{
+ PurplePlugin *seenplug = purple_plugins_find_with_basename("chimeseen");
+ if (seenplug)
+ purple_plugin_load(seenplug);
+}
+
static void chime_purple_login(PurpleAccount *account)
{
PurpleConnection *conn = purple_account_get_connection(account);
+ load_seen_plugin();
+
const gchar *devtoken = purple_account_get_string(account, "devtoken", NULL);
/* Generate a stable device-id based on on the host identity and account name.
* This helps prevent an explosion of separate "devices" being tracked on