From 0754da58da96316a9ff4505f9c7c712c1f0094b6 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sat, 17 Sep 2016 14:51:57 -0700 Subject: some changes merged from wrong branch... new function channel_reddress() instead of hardwired generation and which fixes case-sensitivity; allow dot notation in config and pconfig utils, updated string file --- include/channel.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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 -- cgit v1.2.3