aboutsummaryrefslogtreecommitdiffstats
path: root/protocols
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-07-26 08:45:29 +0200
committerMarius Halden <marius.h@lden.org>2016-07-26 08:45:29 +0200
commit2b08324ee61be94fedd11c7885e297a0f85b9490 (patch)
treee2d038633d71787f49fbc8c20abd9a559ed6b988 /protocols
parent2e2b21996d42f1956db372df6e2bd25a0b089ceb (diff)
parentdc45a85c1996169df4517dc9bb7f7368cb176de5 (diff)
Merge branch 'master' into patched-master
Diffstat (limited to 'protocols')
-rw-r--r--protocols/purple/purple.c6
-rw-r--r--protocols/twitter/twitter_lib.c10
2 files changed, 16 insertions, 0 deletions
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.