changeset 17663:b65d0cc85419

Fix a crash sending an IM in null protocol to a buddy who you don't have a corresponding account for
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 02 Jun 2007 16:09:28 +0000
parents 6fefda6a7d57
children 83f10ac192d9
files libpurple/protocols/null/nullprpl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/null/nullprpl.c	Sat Jun 02 16:08:56 2007 +0000
+++ b/libpurple/protocols/null/nullprpl.c	Sat Jun 02 16:09:28 2007 +0000
@@ -432,7 +432,7 @@
                     from_username, who, message);
 
   /* is the sender blocked by the recipient's privacy settings? */
-  if (!purple_privacy_check(to_acct, gc->account->username)) {
+  if (to_acct && !purple_privacy_check(to_acct, gc->account->username)) {
     char *msg = g_strdup_printf(
       _("Your message was blocked by %s's privacy settings."), who);
     purple_debug_info("nullprpl",