Use presence of IM plugins to decide if "IM" menu option should be shown in Connect

This commit is contained in:
Craig Andrews 2010-06-15 17:04:15 -04:00
parent 004200f958
commit 4ee2c12507

View File

@ -105,7 +105,7 @@ class ConnectSettingsNav extends Widget
# action => array('prompt', 'title')
$menu = array();
if (common_config('xmpp', 'enabled')) {
if (Event::handle('GetImTransports', array(&$transports))) {
$menu['imsettings'] =
array(_('IM'),
_('Updates by instant messenger (IM)'));