- if (u->second->registered == REG_ALL)
- {
- TreeServer* theirserver = Utils->FindServer(u->second->server);
- if (theirserver)
- {
- this->WriteLine(InspIRCd::Format(":%s UID %s %lu %s %s %s %s %s %lu +%s :%s",
- theirserver->GetID().c_str(), // Prefix: SID
- u->second->uuid.c_str(), // 0: UUID
- (unsigned long)u->second->age, // 1: TS
- u->second->nick.c_str(), // 2: Nick
- u->second->host.c_str(), // 3: Real host
- u->second->dhost.c_str(), // 4: Display host
- u->second->ident.c_str(), // 5: Ident
- u->second->GetIPString().c_str(), // 6: IP address
- (unsigned long)u->second->signon, // 7: Signon time
- u->second->FormatModes(true), // 8...n: User modes and params
- u->second->fullname.c_str())); // size-1: GECOS
-
- if (u->second->IsOper())
- {
- this->WriteLine(InspIRCd::Format(":%s OPERTYPE :%s", u->second->uuid.c_str(), u->second->oper->name.c_str()));
- }
- if (u->second->IsAway())
- {
- this->WriteLine(InspIRCd::Format(":%s AWAY %ld :%s", u->second->uuid.c_str(), (long)u->second->awaytime,
- u->second->awaymsg.c_str()));
- }
- }