get default group name from sub channel topic

master
lub 5 years ago
parent e208cdc5e2
commit 91196c0f80

@ -45,7 +45,13 @@ while(true) {
}
}
if(empty($groups) OR $i == 0) {
createChannel($server, $default, $sub, $options, array('channel_flag_permanent' => TRUE));
$topic = $sub->getProperty('channel_topic');
if(!empty($topic)) {
$name = $topic;
} else {
$name = $default;
}
createChannel($server, $name, $sub, $options);
}
}
}

Loading…
Cancel
Save