|
@@ -911,25 +911,25 @@ bool MSGWeiterleitung::spielErstelltAbbrechen( int spielErstelltId )
|
|
|
bool ret = 1;
|
|
|
Text *ip = new Text( "" );
|
|
|
unsigned short port = 0;
|
|
|
- ret = ret & ls->zDB()->getSpielServerPortIp( spielErstelltId, &port, ip );
|
|
|
+ ret &= ls->zDB()->getSpielServerPortIp( spielErstelltId, &port, ip );
|
|
|
if( ip->getLength() )
|
|
|
{
|
|
|
Klient *klient = new Klient();
|
|
|
unsigned char key[ 20 ] = { 253, 234, 211, 132, 121, 230, 95, 145, 201, 13, 43, 77, 153, 223, 253, 69, 234, 43, 52, 99 };
|
|
|
klient->setSendeKey( (char *)key, 20 );
|
|
|
klient->setEmpfangKey( (char *)key, 20 );
|
|
|
- ret = ret & klient->verbinde( port, ip->getText() );
|
|
|
- ret = ret & klient->sendeEncrypted( "\x8\x1", 2 );
|
|
|
+ ret &= klient->verbinde( port, ip->getText() );
|
|
|
+ ret &= klient->sendeEncrypted( "\x8\x1", 2 );
|
|
|
char res = 0;
|
|
|
- ret = ret & klient->getNachrichtEncrypted( &res, 1 );
|
|
|
+ ret &= klient->getNachrichtEncrypted( &res, 1 );
|
|
|
if( res )
|
|
|
{
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&spielErstelltId, 4 );
|
|
|
- ret = ret & klient->getNachrichtEncrypted( &res, 1 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&spielErstelltId, 4 );
|
|
|
+ ret &= klient->getNachrichtEncrypted( &res, 1 );
|
|
|
}
|
|
|
ret = (char)ret & res;
|
|
|
- ret = ret & klient->sendeEncrypted( "\x8\x0", 2 );
|
|
|
- ret = ret & klient->getNachrichtEncrypted( &res, 1 );
|
|
|
+ ret &= klient->sendeEncrypted( "\x8\x0", 2 );
|
|
|
+ ret &= klient->getNachrichtEncrypted( &res, 1 );
|
|
|
ret = (char)ret & res;
|
|
|
ls->addEmpfangen( klient->getDownloadBytes( 1 ) );
|
|
|
ls->addGesendet( klient->getUploadBytes( 1 ) );
|
|
@@ -952,33 +952,33 @@ bool MSGWeiterleitung::spielerLeavesGruppe( int gruppeId, int accountId )
|
|
|
continue;
|
|
|
Text *ip = new Text( "" );
|
|
|
unsigned short port = 0;
|
|
|
- ret = ret & ls->zDB()->getChatServerPortIp( account, &port, ip );
|
|
|
+ ret &= ls->zDB()->getChatServerPortIp( account, &port, ip );
|
|
|
if( ip->getLength() )
|
|
|
{
|
|
|
Klient *klient = new Klient();
|
|
|
unsigned char key[ 20 ] = { 78, 20, 190, 133, 10, 175, 51, 96, 62, 1, 180, 194, 126, 50, 211, 154, 105, 227, 22, 101 };
|
|
|
klient->setSendeKey( (char *)key, 20 );
|
|
|
klient->setEmpfangKey( (char *)key, 20 );
|
|
|
- ret = ret & klient->verbinde( port, ip->getText() );
|
|
|
- ret = ret & klient->sendeEncrypted( "\5\x15", 2 );
|
|
|
+ ret &= klient->verbinde( port, ip->getText() );
|
|
|
+ ret &= klient->sendeEncrypted( "\5\x15", 2 );
|
|
|
char res = 0;
|
|
|
- ret = ret & klient->getNachrichtEncrypted( &res, 1 );
|
|
|
+ ret &= klient->getNachrichtEncrypted( &res, 1 );
|
|
|
if( res )
|
|
|
{
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&account, 4 );
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&accountId, 4 );
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&gruppeId, 4 );
|
|
|
- ret = ret & klient->getNachrichtEncrypted( &res, 1 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&account, 4 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&accountId, 4 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&gruppeId, 4 );
|
|
|
+ ret &= klient->getNachrichtEncrypted( &res, 1 );
|
|
|
}
|
|
|
ret = (char)ret & res;
|
|
|
- ret = ret & klient->sendeEncrypted( "\5\x18", 2 );
|
|
|
+ ret &= klient->sendeEncrypted( "\5\x18", 2 );
|
|
|
res = 0;
|
|
|
- ret = ret & klient->getNachrichtEncrypted( &res, 1 );
|
|
|
+ ret &= klient->getNachrichtEncrypted( &res, 1 );
|
|
|
if( res )
|
|
|
{
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&account, 4 );
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&gruppeId, 4 );
|
|
|
- ret = ret & klient->getNachrichtEncrypted( &res, 1 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&account, 4 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&gruppeId, 4 );
|
|
|
+ ret &= klient->getNachrichtEncrypted( &res, 1 );
|
|
|
}
|
|
|
ret = (char)ret & res;
|
|
|
ls->addEmpfangen( klient->getDownloadBytes( 1 ) );
|
|
@@ -1004,23 +1004,23 @@ bool MSGWeiterleitung::setGruppeAdmin( int gruppeId, int adminId )
|
|
|
int account = accId->get( i );
|
|
|
Text *ip = new Text( "" );
|
|
|
unsigned short port = 0;
|
|
|
- ret = ret & ls->zDB()->getChatServerPortIp( account, &port, ip );
|
|
|
+ ret &= ls->zDB()->getChatServerPortIp( account, &port, ip );
|
|
|
if( ip->getLength() )
|
|
|
{
|
|
|
Klient *klient = new Klient();
|
|
|
unsigned char key[ 20 ] = { 78, 20, 190, 133, 10, 175, 51, 96, 62, 1, 180, 194, 126, 50, 211, 154, 105, 227, 22, 101 };
|
|
|
klient->setSendeKey( (char *)key, 20 );
|
|
|
klient->setEmpfangKey( (char *)key, 20 );
|
|
|
- ret = ret & klient->verbinde( port, ip->getText() );
|
|
|
- ret = ret & klient->sendeEncrypted( "\5\x1B", 2 );
|
|
|
+ ret &= klient->verbinde( port, ip->getText() );
|
|
|
+ ret &= klient->sendeEncrypted( "\5\x1B", 2 );
|
|
|
char res = 0;
|
|
|
- ret = ret & klient->getNachrichtEncrypted( &res, 1 );
|
|
|
+ ret &= klient->getNachrichtEncrypted( &res, 1 );
|
|
|
if( res )
|
|
|
{
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&account, 4 );
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&adminId, 4 );
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&gruppeId, 4 );
|
|
|
- ret = ret & klient->getNachrichtEncrypted( &res, 1 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&account, 4 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&adminId, 4 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&gruppeId, 4 );
|
|
|
+ ret &= klient->getNachrichtEncrypted( &res, 1 );
|
|
|
}
|
|
|
ret = (char)ret & res;
|
|
|
ls->addEmpfangen( klient->getDownloadBytes( 1 ) );
|
|
@@ -1046,23 +1046,23 @@ bool MSGWeiterleitung::spielerLeavesChatroom( int chatroomId, int accountId )
|
|
|
continue;
|
|
|
Text *ip = new Text( "" );
|
|
|
unsigned short port = 0;
|
|
|
- ret = ret & ls->zDB()->getChatServerPortIp( account, &port, ip );
|
|
|
+ ret &= ls->zDB()->getChatServerPortIp( account, &port, ip );
|
|
|
if( ip->getLength() )
|
|
|
{
|
|
|
Klient *klient = new Klient();
|
|
|
unsigned char key[ 20 ] = { 78, 20, 190, 133, 10, 175, 51, 96, 62, 1, 180, 194, 126, 50, 211, 154, 105, 227, 22, 101 };
|
|
|
klient->setSendeKey( (char *)key, 20 );
|
|
|
klient->setEmpfangKey( (char *)key, 20 );
|
|
|
- ret = ret & klient->verbinde( port, ip->getText() );
|
|
|
- ret = ret & klient->sendeEncrypted( "\5\xE", 2 );
|
|
|
+ ret &= klient->verbinde( port, ip->getText() );
|
|
|
+ ret &= klient->sendeEncrypted( "\5\xE", 2 );
|
|
|
char res = 0;
|
|
|
- ret = ret & klient->getNachrichtEncrypted( &res, 1 );
|
|
|
+ ret &= klient->getNachrichtEncrypted( &res, 1 );
|
|
|
if( res )
|
|
|
{
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&accountId, 4 );
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&account, 4 );
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&chatroomId, 4 );
|
|
|
- ret = ret & klient->getNachrichtEncrypted( &res, 1 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&accountId, 4 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&account, 4 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&chatroomId, 4 );
|
|
|
+ ret &= klient->getNachrichtEncrypted( &res, 1 );
|
|
|
}
|
|
|
ret = (char)ret & res;
|
|
|
ls->addEmpfangen( klient->getDownloadBytes( 1 ) );
|
|
@@ -1083,22 +1083,22 @@ bool MSGWeiterleitung::setChatroomAdmin( int chatroomId, int adminId )
|
|
|
bool ret = 1;
|
|
|
Text *ip = new Text( "" );
|
|
|
unsigned short port = 0;
|
|
|
- ret = ret & ls->zDB()->getChatServerPortIp( adminId, &port, ip );
|
|
|
+ ret &= ls->zDB()->getChatServerPortIp( adminId, &port, ip );
|
|
|
if( ip->getLength() )
|
|
|
{
|
|
|
Klient *klient = new Klient();
|
|
|
unsigned char key[ 20 ] = { 78, 20, 190, 133, 10, 175, 51, 96, 62, 1, 180, 194, 126, 50, 211, 154, 105, 227, 22, 101 };
|
|
|
klient->setSendeKey( (char *)key, 20 );
|
|
|
klient->setEmpfangKey( (char *)key, 20 );
|
|
|
- ret = ret & klient->verbinde( port, ip->getText() );
|
|
|
- ret = ret & klient->sendeEncrypted( "\5\x12", 2 );
|
|
|
+ ret &= klient->verbinde( port, ip->getText() );
|
|
|
+ ret &= klient->sendeEncrypted( "\5\x12", 2 );
|
|
|
char res = 0;
|
|
|
- ret = ret & klient->getNachrichtEncrypted( &res, 1 );
|
|
|
+ ret &= klient->getNachrichtEncrypted( &res, 1 );
|
|
|
if( res )
|
|
|
{
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&adminId, 4 );
|
|
|
- ret = ret & klient->sendeEncrypted( (char *)&chatroomId, 4 );
|
|
|
- ret = ret & klient->getNachrichtEncrypted( &res, 1 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&adminId, 4 );
|
|
|
+ ret &= klient->sendeEncrypted( (char *)&chatroomId, 4 );
|
|
|
+ ret &= klient->getNachrichtEncrypted( &res, 1 );
|
|
|
}
|
|
|
ret = (char)ret & res;
|
|
|
ls->addEmpfangen( klient->getDownloadBytes( 1 ) );
|