|
@@ -943,6 +943,39 @@ void MSKlient::thread()
|
|
|
delete[] oName;
|
|
|
break;
|
|
|
}
|
|
|
+ case 0xB:
|
|
|
+ {
|
|
|
+ if( !klientNummer )
|
|
|
+ {
|
|
|
+ errorZuKlient( "Du bist nicht Identifiziert." );
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ klient->sendeEncrypted( "\1", 1 );
|
|
|
+ int acc = ms->zDB()->getAccountId( klientNummer );
|
|
|
+ klient->sendeEncrypted( (char*)&acc, 4 );
|
|
|
+ }
|
|
|
+ case 0xC:
|
|
|
+ {
|
|
|
+ if( !klientNummer )
|
|
|
+ {
|
|
|
+ errorZuKlient( "Du bist nicht Identifiziert." );
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ klient->sendeEncrypted( "\1", 1 );
|
|
|
+ int acc;
|
|
|
+ klient->getNachrichtEncrypted( (char*)&acc, 4 );
|
|
|
+ Text *name = ms->zDB()->getAccountName( acc );
|
|
|
+ if( !name )
|
|
|
+ errorZuKlient( "Der Acount existiert nicht." );
|
|
|
+ else
|
|
|
+ {
|
|
|
+ klient->sendeEncrypted( "\1", 1 );
|
|
|
+ char len = (char)name->getLength();
|
|
|
+ klient->sendeEncrypted( &len, 1 );
|
|
|
+ klient->sendeEncrypted( name->getText(), len );
|
|
|
+ name->release();
|
|
|
+ }
|
|
|
+ }
|
|
|
default:
|
|
|
errorZuKlient( "Unbekannte Nachricht!" );
|
|
|
break;
|