aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/helper.php5
-rw-r--r--template/assemblies/irc.phtml4
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 0393905..79770f3 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -40,6 +40,11 @@ function link_stream($protocol, $room, $format, $translated = false)
return '#';
}
+function irc_channel($room)
+{
+ return '31C3-hall-'.strtoupper(substr($room, 4, 1));
+}
+
function baseurl()
{
if(isset($GLOBALS['CONFIG']['baseurl']))
diff --git a/template/assemblies/irc.phtml b/template/assemblies/irc.phtml
index 871e751..b2b5356 100644
--- a/template/assemblies/irc.phtml
+++ b/template/assemblies/irc.phtml
@@ -2,7 +2,7 @@
<div class="activator">
Click to Activate
<br />
- <a class="irclink" href="irc://irc.hackint.eu:6667/voc">(Directlink)</a>
+ <a class="irclink" href="irc://irc.hackint.eu:6667/<?=h(irc_channel($room))?>">(Directlink)</a>
</div>
- <iframe data-src="https://kthx.de:9090/?channels=voc-<?=h($room)?>&uio=d4" width="1020" height="372" border="0"></iframe>
+ <iframe data-src="https://kthx.de:9090/?channels=<?=h(irc_channel($room))?>-<?=h($room)?>&uio=d4" width="1020" height="372" border="0"></iframe>
</div>