Browse Source

provide optional sitewide channel list

pull/43/head
friendica 10 years ago
parent
commit
3b2cf61a55
  1. BIN
      irc.tgz
  2. 6
      irc/irc.php

BIN
irc.tgz

Binary file not shown.

6
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'] .= '<div class="widget"><h3>' . t('Popular Channels') . '</h3><ul>';

Loading…
Cancel
Save