aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/channel.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/channel.php b/include/channel.php
index 7bfa2b6a2..ce515c917 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -1894,3 +1894,8 @@ function channelx_by_n($id) {
return(($r) ? $r[0] : false);
}
+function channel_reddress($channel) {
+ if(! ($channel && array_key_exists('channel_address',$channel)))
+ return '';
+ return strtolower($channel['channel_address'] . '@' . App::get_hostname());
+} \ No newline at end of file