aboutsummaryrefslogtreecommitdiffstats
path: root/mod/chat.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/chat.php')
-rw-r--r--mod/chat.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/chat.php b/mod/chat.php
index e3725830c..872571f8c 100644
--- a/mod/chat.php
+++ b/mod/chat.php
@@ -79,6 +79,9 @@ function chat_post(&$a) {
function chat_content(&$a) {
+ if(local_user())
+ $channel = $a->get_channel();
+
$observer = get_observer_hash();
if(! $observer) {
notice( t('Permission denied.') . EOL);
@@ -129,7 +132,7 @@ function chat_content(&$a) {
if(local_user() && argc() > 2 && argv(2) === 'new') {
- $channel = $a->get_channel();
+
$channel_acl = array(
'allow_cid' => $channel['channel_allow_cid'],
'allow_gid' => $channel['channel_allow_gid'],