| 590 /* |
590 /* |
| 591 * XXX: Should we be setting this here, or relying on prpls to set it? |
591 * XXX: Should we be setting this here, or relying on prpls to set it? |
| 592 */ |
592 */ |
| 593 flags |= PURPLE_MESSAGE_RECV; |
593 flags |= PURPLE_MESSAGE_RECV; |
| 594 |
594 |
| 595 if (PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_prpl(gc))->set_permit_deny == NULL) { |
595 if (!purple_privacy_check(account, who)) { |
| 596 /* protocol does not support privacy, handle it ourselves */ |
596 purple_signal_emit(purple_conversations_get_handle(), "blocked-im-msg", |
| 597 if (!purple_privacy_check(account, who)) { |
597 account, who, msg, flags, (unsigned int)mtime); |
| 598 purple_signal_emit(purple_conversations_get_handle(), "blocked-im-msg", |
598 return; |
| 599 account, who, msg, flags, (unsigned int)mtime); |
|
| 600 return; |
|
| 601 } |
|
| 602 } |
599 } |
| 603 |
600 |
| 604 /* |
601 /* |
| 605 * We should update the conversation window buttons and menu, |
602 * We should update the conversation window buttons and menu, |
| 606 * if it exists. |
603 * if it exists. |