From: friendica Date: Mon, 2 Apr 2012 01:11:11 +0000 (-0700) Subject: provide optional sitewide channel list X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3b2cf61a554bd852aed0bfafc37dc2b14ee83729;p=friendica-addons.git provide optional sitewide channel list --- diff --git a/irc.tgz b/irc.tgz index b5285cee..cb864605 100644 Binary files a/irc.tgz and b/irc.tgz differ diff --git a/irc/irc.php b/irc/irc.php index 24cfb7b4..065e4808 100644 --- a/irc/irc.php +++ b/irc/irc.php @@ -36,7 +36,11 @@ function irc_content(&$a) { $baseurl = $a->get_baseurl() . '/addon/irc'; $o = ''; - $chats = array('friendica','chat','chatback','hottub','ircbar','dateroom','teentalk'); + $sitechats = get_config('irc','channels'); + if($sitechats) + $chats = explode(',',$sitechats); + else + $chats = array('friendica','chat','chatback','hottub','ircbar','dateroom','teentalk'); $a->page['aside'] .= '

' . t('Popular Channels') . '