about summary refs log tree commit diff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index 6b37a18..a8d9195 100644
--- a/index.php
+++ b/index.php
@@ -19,6 +19,7 @@
 		$uri = "xmpp:" . $uri;
 	}
 	// TODO: Better invitation type detection.
+	$parsed = parse_url($uri);
 	$action = $lang->chat;
 	if ( str_contains($uri, '?join') ) {
 		$action = $lang->muc;
@@ -27,8 +28,9 @@
 		if ( str_contains($uri, "@") ) {
 			$action = $lang->register_name;
 		}
+	} elseif ( str_contains($parsed['query'], 'ibr=y') ) {
+		$action = $lang->ibr;
 	}
-	$parsed = parse_url($uri);
 	$name = explode("@", $parsed['path'])[0];
 	$server = explode("@", $parsed['path'])[1] ?? $name;
 	function t($template) {