]> git.mxchange.org Git - friendica-addons.git/commitdiff
provide optional sitewide channel list
authorfriendica <info@friendica.com>
Mon, 2 Apr 2012 01:11:11 +0000 (18:11 -0700)
committerfriendica <info@friendica.com>
Mon, 2 Apr 2012 01:11:11 +0000 (18:11 -0700)
irc.tgz
irc/irc.php

diff --git a/irc.tgz b/irc.tgz
index b5285cee705913acb91b57491b711d429a3785aa..cb86460599f429d1304f82ec46525225d70f591f 100644 (file)
Binary files a/irc.tgz and b/irc.tgz differ
index 24cfb7b477b161ebd5f89c547b77628e98e4987d..065e48080d81a4726ead6048b19dcab7327e71ae 100644 (file)
@@ -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'] .= '<div class="widget"><h3>' . t('Popular Channels') . '</h3><ul>';