X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=irc%2Firc.php;h=065e48080d81a4726ead6048b19dcab7327e71ae;hb=3b2cf61a554bd852aed0bfafc37dc2b14ee83729;hp=f2c65b177593df65c7857df8e384153faf98641e;hpb=5c59002db44687120ae966f4f639e9ab556faf94;p=friendica-addons.git diff --git a/irc/irc.php b/irc/irc.php index f2c65b17..065e4808 100644 --- a/irc/irc.php +++ b/irc/irc.php @@ -22,7 +22,7 @@ unregister_hook('app_menu', 'addon/irc/irc.php', 'irc_app_menu'); } function irc_app_menu($a,&$b) { -$b['app_menu'][] = '
' . t('irc Chatroom') . '
'; +$b['app_menu'][] = '
' . t('IRC Chatroom') . '
'; } @@ -33,8 +33,25 @@ return; function irc_content(&$a) { -$baseurl = $a->get_baseurl() . '/addon/irc'; -$o = ''; + $baseurl = $a->get_baseurl() . '/addon/irc'; + $o = ''; + + $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') . '

'; + + + + $channels = ((x($_GET,'channels')) ? $_GET['channels'] : 'friendica'); @@ -44,7 +61,7 @@ $channels = ((x($_GET,'channels')) ? $_GET['channels'] : 'friendica'); */ $o .= <<< EOT

IRC chat

-

a beginner's guide to using IRC.

+

A beginner's guide to using IRC. [en]

EOT;