Browse Source

fix style in functions.php

master
lub 10 months ago
parent
commit
74902953a6
1 changed files with 18 additions and 18 deletions
  1. +18
    -18
      functions.php

+ 18
- 18
functions.php View File

@@ -1,25 +1,25 @@
<?php
function createChannel($server, $name, $parent, $options) {
$id = $server->channelCreate(array(
'channel_name' => $name,
'channel_flag_semi_permanent' => TRUE,
'cpid' => $parent->getId()
));
if($options['inherit_icons']) {
$icon = $parent->getProperty('channel_icon_id');
$id = $server->channelCreate(array(
'channel_name' => $name,
'channel_flag_semi_permanent' => TRUE,
'cpid' => $parent->getId()
));
if($options['inherit_icons']) {
$icon = $parent->getProperty('channel_icon_id');

#check if parent channel actually has an icon
if($icon !== 0) {
$server->channelPermAssign($id, "i_icon_id", $icon);
}
}
// check if parent channel actually has an icon
if($icon !== 0) {
$server->channelPermAssign($id, "i_icon_id", $icon);
}
}
}

function catchExceptions($name, $excpetions) {
foreach($excpetions as $exception) {
if($name == $exception) {
return true;
}
}
return false;
foreach($excpetions as $exception) {
if($name == $exception) {
return true;
}
}
return false;
}

Loading…
Cancel
Save