@ -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);