$channel->setCreateTime($create_time);
$modes = $channel->getModes();
$userstr = $args[count($args)-1];
- $modeparamcount = count($args)-3;
if($userstr[0] == "%") {
//ban list
$banlist = explode(" ", substr($userstr, 1));
//TODO: save bans
}
$userstr = $args[count($args)-2];
- $modeparamcount--;
}
if($userstr[0] == "+") { //MODE String
- $modeparamcount++;
$userstr = "";
}
$users = explode(",",$userstr);
if($user == "") continue;
$uexp = explode(":", $user);
if(strlen($uexp[0]) != 5) {
- trigger_error("burst parse error: '".$uexp[0]."' is not an user numeric.", E_USER_ERROR);
- return;
+ trigger_error("burst parse error: '".$uexp[0]."' is not an user numeric.", E_USER_WARNING);
+ break;
}
if(count($uexp) > 1) {
$isop = false;
if($this->eventHandler)
$this->eventHandler->event_join($user, $channel, true);
}
- $modes->parseModes(implode(" ", array_slice($args, 2, $modeparamcount)));
+ $modes->parseModes(implode(" ", array_slice($args, 2)));
}
private function recv_join($from, $args) {