grim/purple-plugin-pack
--leaks
org.guifications.plugins
2009-04-15, darkrain42
* DeWYSIWYGification - Lets you type in HTML without it being escaped to entities. * Copyright (C) 2004-2008 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. /* If you can't figure out what this line is for, DON'T TOUCH IT. */ #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\n", 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\n", 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 = 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) bindtextdomain(GETTEXT_PACKAGE, PP_LOCALEDIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); info.name = _(info.name); info.summary = _(info.summary); info.description = _(info.description); PURPLE_INIT_PLUGIN(dewysiwygification, init_plugin, info)