aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure8
-rw-r--r--protocols/purple/purple.c6
-rw-r--r--protocols/twitter/twitter_lib.c10
3 files changed, 23 insertions, 1 deletions
diff --git a/configure b/configure
index 39153dc6..7a931112 100755
--- a/configure
+++ b/configure
@@ -341,7 +341,13 @@ if [ -z "$PKG_CONFIG" ]; then
PKG_CONFIG=pkg-config
fi
-if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then
+if ! $PKG_CONFIG --version > /dev/null 2>/dev/null; then
+ echo
+ echo 'Cannot find pkg-config, aborting.'
+ exit 1
+fi
+
+if $PKG_CONFIG glib-2.0; then
if $PKG_CONFIG glib-2.0 --atleast-version=$GLIB_MIN_VERSION; then
cat<<EOF >>Makefile.settings
EFLAGS+=$($PKG_CONFIG --libs glib-2.0 gmodule-2.0)
diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c
index 4f10c9e7..87d628c3 100644
--- a/protocols/purple/purple.c
+++ b/protocols/purple/purple.c
@@ -1587,6 +1587,12 @@ void purple_initmodule()
GString *help;
char *dir;
+ if (purple_get_core() != NULL) {
+ log_message(LOGLVL_ERROR, "libpurple already initialized. "
+ "Please use inetd or ForkDaemon mode instead.");
+ return;
+ }
+
g_assert((int) B_EV_IO_READ == (int) PURPLE_INPUT_READ);
g_assert((int) B_EV_IO_WRITE == (int) PURPLE_INPUT_WRITE);
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c
index a1e969a1..4ef22345 100644
--- a/protocols/twitter/twitter_lib.c
+++ b/protocols/twitter/twitter_lib.c
@@ -383,6 +383,11 @@ static void twitter_http_get_mutes_ids(struct http_request *req)
td = ic->proto_data;
+ if (req->status_code != 200) {
+ /* Fail silently */
+ return;
+ }
+
// Parse the data.
if (!(parsed = twitter_parse_response(ic, req))) {
return;
@@ -421,6 +426,11 @@ static void twitter_http_get_noretweets_ids(struct http_request *req)
return;
}
+ if (req->status_code != 200) {
+ /* Fail silently */
+ return;
+ }
+
td = ic->proto_data;
// Parse the data.