summaryrefslogtreecommitdiff
path: root/libpurple/account.c
diff options
context:
space:
mode:
authorJohn Bailey <rekkanoryo@rekkanoryo.org>2009-09-16 15:36:24 +0000
committerJohn Bailey <rekkanoryo@rekkanoryo.org>2009-09-16 15:36:24 +0000
commita245c80a0788d33e86c8512606a9cde4ac424553 (patch)
tree5b2477b5fde7398f0846be846b66238b779797a4 /libpurple/account.c
parenta27b85d8a86ec484a4064bb924425f9889535167 (diff)
parentf0263ba7a7d0ab488519a745fba7b2f36ddc02a7 (diff)
downloadpidgin-a245c80a0788d33e86c8512606a9cde4ac424553.tar.gz
merge of '755d7efe6da376f6fbeb9f6d3e08f2d7201aabc7'
and '0848cfc68369ad686459fb7420f1e4613029b294'
Diffstat (limited to 'libpurple/account.c')
-rw-r--r--libpurple/account.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libpurple/account.c b/libpurple/account.c
index a8c32ed88e..af2397ea38 100644
--- a/libpurple/account.c
+++ b/libpurple/account.c
@@ -1206,11 +1206,14 @@ void
purple_account_disconnect(PurpleAccount *account)
{
PurpleConnection *gc;
+ const char *username;
g_return_if_fail(account != NULL);
g_return_if_fail(!purple_account_is_disconnected(account));
- purple_debug_info("account", "Disconnecting account %p\n", account);
+ username = purple_account_get_username(account);
+ purple_debug_info("account", "Disconnecting account %s (%p)\n",
+ username ? username : "(null)", account);
account->disconnecting = TRUE;
@@ -2287,9 +2290,13 @@ void
purple_account_add_buddy(PurpleAccount *account, PurpleBuddy *buddy)
{
PurplePluginProtocolInfo *prpl_info = NULL;
- PurpleConnection *gc = purple_account_get_connection(account);
+ PurpleConnection *gc;
PurplePlugin *prpl = NULL;
+ g_return_if_fail(account != NULL);
+ g_return_if_fail(buddy != NULL);
+
+ gc = purple_account_get_connection(account);
if (gc != NULL)
prpl = purple_connection_get_prpl(gc);