]> git.mxchange.org Git - friendica-addons.git/commitdiff
pass IRC channel through url, allows simpler default choice.
authorfriendica <info@friendica.com>
Sun, 1 Apr 2012 01:39:35 +0000 (18:39 -0700)
committerfriendica <info@friendica.com>
Sun, 1 Apr 2012 01:39:35 +0000 (18:39 -0700)
irc.tgz
irc/irc.php

diff --git a/irc.tgz b/irc.tgz
index e10b0769e74e5dc9864e683e79dd7f0111abc479..c6ba1bffea99337a2a278039f796c4fdc599649b 100644 (file)
Binary files a/irc.tgz and b/irc.tgz differ
index 1e05195099fa03172726bff3f6b9ba7ebe30aa38..f2c65b177593df65c7857df8e384153faf98641e 100644 (file)
@@ -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
 <h2>IRC chat</h2>
 <p><a href="http://tldp.org/HOWTO/IRC/beginners.html" target="_blank">a beginner's guide to using IRC.</a></p>
-<iframe src="http://webchat.freenode.net?channels=friendica" width="600" height="600"></iframe>
+<iframe src="http://webchat.freenode.net?channels=$channels" width="600" height="600"></iframe>
 EOT;
 
 return $o;