| | 2684 | |
| | 2685 | // Find out what's supported for this protocol |
| | 2686 | unsigned long sendFuncs = 0xFFFFFFFF; |
| | 2687 | if (nPPID != LICQ_PPID) |
| | 2688 | { |
| | 2689 | FOR_EACH_PROTO_PLUGIN_START(gLicqDaemon) |
| | 2690 | { |
| | 2691 | if ((*_ppit)->PPID() == nPPID) |
| | 2692 | { |
| | 2693 | sendFuncs = (*_ppit)->SendFunctions(); |
| | 2694 | break; |
| | 2695 | } |
| | 2696 | } |
| | 2697 | FOR_EACH_PROTO_PLUGIN_END |
| | 2698 | } |
| | 2699 | |
| | 2700 | // Check if the protocol for this contact support the function we want to open |
| | 2701 | if ((fcn == mnuUserSendMsg && !(sendFuncs & PP_SEND_MSG)) || |
| | 2702 | (fcn == mnuUserSendUrl && !(sendFuncs & PP_SEND_URL)) || |
| | 2703 | (fcn == mnuUserSendChat && !(sendFuncs & PP_SEND_CHAT)) || |
| | 2704 | (fcn == mnuUserSendFile && !(sendFuncs & PP_SEND_FILE )) || |
| | 2705 | (fcn == mnuUserSendContact && !(sendFuncs & PP_SEND_CONTACT)) || |
| | 2706 | (fcn == mnuUserSendSms && !(sendFuncs & PP_SEND_SMS))) |
| | 2707 | return NULL; |
| | 2708 | |