From: friendica Date: Sun, 1 Apr 2012 01:39:35 +0000 (-0700) Subject: pass IRC channel through url, allows simpler default choice. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=96edae9196693ff7cbab84425bb585cfaff8e841;p=friendica-addons.git pass IRC channel through url, allows simpler default choice. --- diff --git a/irc.tgz b/irc.tgz index e10b0769..c6ba1bff 100644 Binary files a/irc.tgz and b/irc.tgz differ diff --git a/irc/irc.php b/irc/irc.php index 1e051950..f2c65b17 100644 --- a/irc/irc.php +++ b/irc/irc.php @@ -36,6 +36,7 @@ function irc_content(&$a) { $baseurl = $a->get_baseurl() . '/addon/irc'; $o = ''; +$channels = ((x($_GET,'channels')) ? $_GET['channels'] : 'friendica'); /* add the chatroom frame and some html * by altering the "channels=friendica" part of the URL, you can add/remove channels. @@ -44,7 +45,7 @@ $o = ''; $o .= <<< EOT

IRC chat

a beginner's guide to using IRC.

- + EOT; return $o;