case "OM":
$this->recv_mode($from, $arguments);
break;
+ case "AC":
+ $this->recv_account($from, $arguments);
+ break;
//default
default:
//unknown cmd
$this->eventHandler->event_usermode($targetUser, $modes);
}
}
+
+ private function recv_account($from, $args) {
+ $user = P10_User::getUserByNum($args[0]);
+ if($user == null) {
+ trigger_error("Server tries to send an auth announce from an user that does not exist or was not found on recv_account.", E_USER_ERROR);
+ return;
+ }
+ $auth = $args[1];
+ $user->getModes()->setModes("+r ".$auth);
+ if($this->eventHandler)
+ $this->eventHandler->event_usermode($user, "+r ".$auth);
+ }
/********************************************************************************************
* SERVER FUNCTIONS *