# HG changeset patch # User Ethan Blanton # Date 1177884302 0 # Node ID fc39fa0afdc8158decdb079a1f84663e8d74bb2b # Parent e2fc81093e88d4d7a8c5b7fd8ec4ab0de4d8016f Cause Psychic Mode to obey privacy settings when apprpriate. Thanks to "a synx" for this patch. diff -r e2fc81093e88 -r fc39fa0afdc8 libpurple/plugins/psychic.c --- a/libpurple/plugins/psychic.c Sun Apr 29 19:47:08 2007 +0000 +++ b/libpurple/plugins/psychic.c Sun Apr 29 22:05:02 2007 +0000 @@ -9,6 +9,7 @@ #include "signals.h" #include "status.h" #include "version.h" +#include "privacy.h" #include "plugin.h" #include "pluginpref.h" @@ -47,6 +48,11 @@ return; } + if(FALSE == purple_privacy_check(acct, name)) { + purple_debug_info("psychic", "user %s is blocked", name); + return; + } + gconv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, name, acct); if(! gconv) { purple_debug_info("psychic", "no previous conversation exists\n");