diff libpurple/protocols/null/nullprpl.c @ 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 29137f15743d
children 941965d6fd88 315151da0dc6
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",