Skip to content

Instantly share code, notes, and snippets.

View syldrathecat's full-sized avatar
🏳️‍⚧️

syldrathecat

🏳️‍⚧️
View GitHub Profile
/*
Built using the following command from libpurple directory:
gcc ./nss-flist-test.c -lm -lresolv `pkg-config --cflags --libs glib-2.0` \
`pkg-config --cflags --libs gobject-2.0` `pkg-config --cflags --libs gmodule-2.0` \
`pkg-config --cflags --libs gio-2.0` \
`pkg-config --cflags --libs nspr` `pkg-config --cflags --libs nss` \
`pkg-config --cflags --libs dbus-1` `pkg-config --cflags --libs dbus-glib-1` \
`pkg-config --cflags --libs libxml-2.0` -o nss-flist-test -I . \
diff --git a/f-list_commands.c b/f-list_commands.c
index 92c17b9..1f80174 100644
--- a/f-list_commands.c
+++ b/f-list_commands.c
@@ -464,8 +464,6 @@ int flist_send_message(PurpleConnection *pc, const gchar *who, const gchar *mess
im = PURPLE_CONV_IM(purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, who, fla->pa));
purple_markup_html_to_xhtml(message, NULL, &plain_message);
- local_message = purple_markup_escape_text(plain_message, -1); /* re-escape the html entities */
- bbcode_message = flist_bbcode_to_html(fla, purple_conv_im_get_conversation(im), local_message); /* convert the bbcode to html to display locally */
@syldrathecat
syldrathecat / CMakeLists.txt
Created December 30, 2015 16:31
fchat-pidgin cmake script
cmake_minimum_required(VERSION 2.6)
project(fchat-pidgin C)
include(FindPkgConfig)
option(FCHAT_PURPLE_ONLY "Compile without pidgin-specific extensions." OFF)
pkg_check_modules(GLIB REQUIRED glib-2.0)
pkg_check_modules(JSON_GLIB REQUIRED json-glib-1.0)
pkg_check_modules(PIDGIN REQUIRED pidgin)