diff options
-rw-r--r-- | mod/magic.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/magic.php b/mod/magic.php index ba9e69a49..0f9a66c5b 100644 --- a/mod/magic.php +++ b/mod/magic.php @@ -60,6 +60,18 @@ function magic_init(&$a) { return; } + $arr = array( + 'channel_id' => local_user(), + 'xchan' => $x[0], + 'destination' => $dest, + 'proceed' => true + ); + + call_hooks('magic_auth',$arr); + $dest = $arr['destination']; + if(! $arr['proceed']) + goaway($dest); + if($x[0]['hubloc_url'] === z_root()) { $webbie = substr($x[0]['hubloc_addr'],0,strpos('@',$x[0]['hubloc_addr'])); switch($dest) { |