if( checkArgInt( 2 ) ) color = getArgInt( 2 );  if( checkArgInt( 3 ) ) font = getArgInt( 3 );   cUObject *object = 0;  if( checkArgChar( 4 ) ) object = getArgChar( 4 ); else if( checkArgItem( 4 ) ) object = getArgItem( 4 );  if( checkArgStr( 5 ) ) { bool dontmove = false; bool prepend = false;  if( checkArgInt( 6 ) && getArgInt( 6 ) == 1 ) dontmove = true;  if( checkArgInt( 7 ) && getArgInt( 7 ) == 1 ) prepend = true;   QString affix = getArgStr( 5 ); self->pSock->clilocMessageAffix( getArgInt( 0 ), params, affix, color, font, object, dontmove, prepend ); } else { self->pSock->clilocMessage( getArgInt( 0 ), params, color, font, object );
if (params != 0) { PyMem_Free(params);
static PyObject* wpSocket_clilocmessage( wpSocket* self, PyObject* args ){	if( !self->pSock )		return PyFalse;	if( !checkArgInt( 0 ) )	{		PyErr_BadArgument();		return NULL;	}	UINT16 color = 0x37;	UINT16 font = 3;	QString params( "" );	if( checkArgStr( 1 ) )	{		params = getArgStr( 1 );	}	else if( checkArgUnicode( 1 ) )	{		params.setUnicodeCodes( (unsigned short*)getArgUnicode( 1 ), getUnicodeSize( 1 ) ) ;	}	if( checkArgInt( 2 ) )		color = getArgInt( 2 );	if( checkArgInt( 3 ) )		font = getArgInt( 3 );	// Object	cUObject *object = 0;	if( checkArgChar( 4 ) )		object = getArgChar( 4 );	else if( checkArgItem( 4 ) )		object = getArgItem( 4 );	if( checkArgStr( 5 ) )	{		bool dontmove = false;		bool prepend = false;		if( checkArgInt( 6 ) && getArgInt( 6 ) == 1 )			dontmove = true;		if( checkArgInt( 7 ) && getArgInt( 7 ) == 1 )			prepend = true;		// Message Affix		QString affix = getArgStr( 5 );		self->pSock->clilocMessageAffix( getArgInt( 0 ), params, affix, color, font, object, dontmove, prepend );	}	else	{		self->pSock->clilocMessage( getArgInt( 0 ), params, color, font, object );	}	return PyTrue;}