pidgin/purple-plugin-pack

15f458441a7f
Parents 3eefabdf86fd
Children 345b0b400b18
Version bump and dropping autorejoin since it was successfully merged into
the irc-more plugin.
--- a/ChangeLog Sun Aug 19 20:07:25 2007 -0400
+++ b/ChangeLog Sun Aug 19 20:34:22 2007 -0400
@@ -1,3 +1,7 @@
+Version 2.2.0mtn:
+ * Merged autorejoin into irc-more. No prefs migration will take place.
+ You will need to reconfigure the delay yourself.
+
Version 2.1.1: 8/19/07
* Fixed lack of .build, .pidgin-plugin, and Makefile.mingw for convbadger
--- a/VERSION Sun Aug 19 20:07:25 2007 -0400
+++ b/VERSION Sun Aug 19 20:34:22 2007 -0400
@@ -1,1 +1,1 @@
-2.1.1
+2.2.0mtn
--- a/autorejoin/Makefile.am Sun Aug 19 20:07:25 2007 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-EXTRA_DIST = .build .purple-plugin Makefile.mingw
-
-autorejoindir = $(PURPLE_LIBDIR)
-
-autorejoin_la_LDFLAGS = -module -avoid-version
-
-if HAVE_PURPLE
-
-autorejoin_LTLIBRARIES = autorejoin.la
-
-autorejoin_la_LIBADD = \
- $(GTK_LIBS)
-
-autorejoin_la_SOURCES = \
- autorejoin.c
-
-endif
-
-AM_CPPFLAGS = \
- -DLIBDIR=\"$(PURPLE_LIBDIR)\" \
- -DDATADIR=\"$(PURPLE_DATADIR)\" \
- -DLOCALEDIR=\"$(PURPLE_DATADIR)/locale\" \
- $(GTK_CFLAGS) \
- $(DEBUG_CFLAGS) \
- $(PURPLE_CFLAGS)
--- a/autorejoin/Makefile.mingw Sun Aug 19 20:07:25 2007 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-#
-# Makefile.mingw
-#
-# Description: Makefile for autorejoin plugin.
-#
-
-PP_TOP := ..
-
-PP = autorejoin
-
-include $(PP_TOP)/win_pp.mak
-
--- a/autorejoin/autorejoin.c Sun Aug 19 20:07:25 2007 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,179 +0,0 @@
-/*
- * Autorejoin - Autorejoin on /kick
- * Copyright (C) 2006
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- */
-
-#include "../common/pp_internal.h"
-
-#define PLUGIN_ID "core-plugin_pack-autorejoin"
-#define PLUGIN_STATIC_NAME "autorejoin"
-#define PLUGIN_AUTHOR "Sadrul H Chowdhury <sadrul@users.sourceforge.net>"
-
-/* System headers */
-#include <string.h>
-
-/* Purple headers */
-#include <cmds.h>
-#include <plugin.h>
-#include <prpl.h>
-
-#define PREF_PREFIX "/plugins/core/" PLUGIN_ID
-#define PREF_DELAY PREF_PREFIX "/delay"
-
-static gboolean
-show_them(gpointer data)
-{
- /* So you think you can kick me? I'll show you! */
- PurpleConversation *conv = data;
- char *command = g_strdup_printf("join %s", purple_conversation_get_name(conv));
- char *markup = g_markup_escape_text(command, -1);
- char *error = NULL;
- purple_cmd_do_command(conv, command, markup, &error); /* Do anything with the return value? */
- g_free(command);
- g_free(markup);
- g_free(error);
- return FALSE;
-}
-
-static void
-irc_receiving_text(PurpleConnection *gc, const char **incoming, gpointer null)
-{
- char **splits;
-
- if (!incoming || !*incoming || !**incoming) /* oh the fun .. I can do this all day! */
- return;
-
- splits = g_strsplit(*incoming, " ", -1);
- if (splits[1]) {
- PurpleAccount *account = purple_connection_get_account(gc);
- char *str = g_ascii_strdown(splits[1], -1);
-
- if (strcmp(str, "kick") == 0 && splits[2] && splits[3]) {
- char *name = splits[2];
- GList *chats = purple_get_chats();
- while (chats) {
- PurpleConversation *conv = chats->data;
- chats = chats->next;
- if (purple_conversation_get_account(conv) == account
- && strcmp(purple_conversation_get_name(conv), name) == 0) {
- g_timeout_add(1000 * MAX(10, purple_prefs_get_int(PREF_DELAY)), show_them, conv);
- break;
- }
- }
- }
- g_free(str);
- }
- g_strfreev(splits);
-}
-
-static gboolean
-plugin_load(PurplePlugin *plugin)
-{
- PurplePlugin *prpl = purple_find_prpl("prpl-irc");
- if (!prpl)
- return FALSE;
- purple_signal_connect(prpl, "irc-receiving-text", plugin,
- G_CALLBACK(irc_receiving_text), NULL);
- return TRUE;
-}
-
-static gboolean
-plugin_unload(PurplePlugin *plugin)
-{
- return TRUE;
-}
-
-static PurplePluginPrefFrame *
-get_plugin_pref_frame(PurplePlugin *plugin)
-{
- PurplePluginPrefFrame *frame;
- PurplePluginPref *pref;
-
- frame = purple_plugin_pref_frame_new();
-
- pref = purple_plugin_pref_new_with_name_and_label(PREF_DELAY,
- _("Seconds to wait before rejoining"));
- purple_plugin_pref_set_bounds(pref, 10, 9999);
- purple_plugin_pref_frame_add(frame, pref);
-
- return frame;
-}
-
-static PurplePluginUiInfo prefs_info = {
- get_plugin_pref_frame,
- 0,
- NULL,
-
- /* padding */
- NULL,
- NULL,
- NULL,
- NULL
-};
-
-static PurplePluginInfo info = {
- PURPLE_PLUGIN_MAGIC, /* Magic */
- PURPLE_MAJOR_VERSION, /* Purple Major Version */
- PURPLE_MINOR_VERSION, /* Purple Minor Version */
- PURPLE_PLUGIN_STANDARD, /* plugin type */
- NULL, /* ui requirement */
- 0, /* flags */
- NULL, /* dependencies */
- PURPLE_PRIORITY_DEFAULT, /* priority */
-
- PLUGIN_ID, /* plugin id */
- NULL, /* name */
- PP_VERSION, /* version */
- NULL, /* summary */
- NULL, /* description */
- PLUGIN_AUTHOR, /* author */
- PP_WEBSITE, /* website */
-
- plugin_load, /* load */
- plugin_unload, /* unload */
- NULL, /* destroy */
-
- NULL, /* ui_info */
- NULL, /* extra_info */
- &prefs_info, /* prefs_info */
- NULL, /* actions */
-
- NULL, /* reserved 1 */
- NULL, /* reserved 2 */
- NULL, /* reserved 3 */
- NULL /* reserved 4 */
-};
-
-static void
-init_plugin(PurplePlugin *plugin)
-{
-#ifdef ENABLE_NLS
- bindtextdomain(GETTEXT_PACKAGE, PP_LOCALEDIR);
- bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
-#endif /* ENABLE_NLS */
-
- info.name = _("Autorejoin (IRC)");
- info.summary = _("Autorejoin on /kick on IRC");
- info.description = _("Automatically rejoin a IRC chatroom when someone "
- "lovingly /kicks you.");
-
- purple_prefs_add_none(PREF_PREFIX);
- purple_prefs_add_int(PREF_DELAY, 30);
-}
-
-PURPLE_INIT_PLUGIN(PLUGIN_STATIC_NAME, init_plugin, info)
--- a/configure.ac Sun Aug 19 20:07:25 2007 -0400
+++ b/configure.ac Sun Aug 19 20:34:22 2007 -0400
@@ -1,4 +1,4 @@
-AC_INIT([purple-plugin_pack], [2.1.1], [guifications-devel@lists.sourceforge.net])
+AC_INIT([purple-plugin_pack], [2.2.0mtn], [guifications-devel@lists.sourceforge.net])
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(pre_config.h)
@@ -300,7 +300,6 @@
VERSION
plugin_pack.spec
album/Makefile
- autorejoin/Makefile
autoreply/Makefile
awaynotify/Makefile
bash/Makefile
--- a/po/POTFILES.in Sun Aug 19 20:07:25 2007 -0400
+++ b/po/POTFILES.in Sun Aug 19 20:34:22 2007 -0400
@@ -1,6 +1,5 @@
album/album-ui.c
album/album.c
-autorejoin/autorejoin.c
autoreply/autoreply.c
awaynotify/awaynotify.c
bash/bash.c