--- a/ChangeLog Sat Oct 20 16:03:50 2007 -0400
+++ b/ChangeLog Sat Oct 20 17:11:08 2007 -0400
@@ -24,6 +24,7 @@
* Fixed building with ancient glib. (Bodo Bellut)
* Removed the .build file from hideconv to remove it from default
builds. Pidgin will have persistent conversations soon.
+ * Added dewysiwygification plugin * Fixed lack of .build, .pidgin-plugin, and Makefile.mingw for convbadger
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dewysiwygification/Makefile.am Sat Oct 20 17:11:08 2007 -0400
@@ -0,0 +1,26 @@
+EXTRA_DIST = .purple-plugin .build Makefile.mingw +dewysiwygificationdir = $(PURPLE_LIBDIR) +dewysiwygification_la_LDFLAGS = -module -avoid-version +dewysiwygification_LTLIBRARIES = dewysiwygification.la +dewysiwygification_la_SOURCES = \ +dewysiwygification_la_LIBADD = \ + -DLIBDIR=\"$(PURPLE_LIBDIR)\" \ + -DDATADIR=\"$(PURPLE_DATADIR)\" \ + -DPIXMAPSDIR=\"$(PURPLE_PIXMAPSDIR)\" \ --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dewysiwygification/dewysiwygification.c Sat Oct 20 17:11:08 2007 -0400
@@ -0,0 +1,117 @@
+ * DeWYSIWYGification - Lets you type in HTML without it being escaped to entities. + * Copyright (C) 2004 Tim Ringenbach <omarvo@hotmail.com> + * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA. +#include "../common/pp_internal.h" +#define DEWYSIWYGIFICATION_PLUGIN_ID "dewysiwygification" +substitute_words_send_im(PurpleAccount *account, const char *receiver, + if (message == NULL || *message == NULL) + tmp = purple_unescape_html(*message); + purple_debug_misc("dewysiwygification", "it's now: %s", tmp); +substitute_words_send_chat(PurpleAccount *account, char **message, int id) + if (message == NULL || *message == NULL) + tmp = purple_unescape_html(*message); + purple_debug_misc("dewysiwygification", "it's now: %s", tmp); +plugin_load(PurplePlugin *plugin) + void *conv_handle = purple_conversations_get_handle(); + purple_signal_connect(conv_handle, "sending-im-msg", + plugin, PURPLE_CALLBACK(substitute_words_send_im), NULL); + purple_signal_connect(conv_handle, "sending-chat-msg", + plugin, PURPLE_CALLBACK(substitute_words_send_chat), NULL); +static PurplePluginInfo info = + PURPLE_PLUGIN_STANDARD, + PURPLE_PRIORITY_DEFAULT, + DEWYSIWYGIFICATION_PLUGIN_ID, + N_("DeWYSIWYGification Plugin"), + N_("Lets you type in HTML without it being escaped to entities."), + N_("Lets you type in HTML without it being escaped to entities. This will not work well for some protocols. Use \"<\" for a literal \"<\"."), + "Tim Ringenbach <omarvo@hotmail.com>", +init_plugin(PurplePlugin *plugin) +PURPLE_INIT_PLUGIN(dewysiwygification, init_plugin, info)