diff --git a/main.php b/main.php index 6561d27..ca1e275 100644 --- a/main.php +++ b/main.php @@ -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); } } }