void cPythonTarget::timedout( UOXSOCKET socket ) {  for( UI08 i = 0; i < PyTuple_Size( arguments_ ); i++ ) Py_DECREF( PyTuple_GetItem( arguments_, i ) ); }
void timedout( cUOSocket* socket ) { if ( !timeoutfunc.isNull() && !timeoutfunc.isEmpty() && timeoutfunc.contains( "." ) ) {  INT32 position = timeoutfunc.findRev( "." ); QString sModule = timeoutfunc.left( position ); QString sFunction = timeoutfunc.right( timeoutfunc.length() - ( position + 1 ) );  PyObject* pModule = PyImport_ImportModule( const_cast<char*>( sModule.latin1() ) );  if ( pModule ) { PyObject* pFunc = PyObject_GetAttrString( pModule, const_cast<char*>( sFunction.latin1() ) );  if ( pFunc && PyCallable_Check( pFunc ) ) {  PyObject* args = PyTuple_New( 1 ); PyTuple_SetItem( args, 0, PyGetCharObject( socket->player() ) );  PyObject* result = PyEval_CallObject( pFunc, args ); Py_XDECREF( result ); reportPythonError( sModule ); }  Py_XDECREF( pFunc ); }  Py_XDECREF( pModule ); }  Py_DECREF( args ); }
void cPythonTarget::timedout( UOXSOCKET socket ){	// DECREF as the arguments are no longer needed	for( UI08 i = 0; i < PyTuple_Size( arguments_ ); i++ )		Py_DECREF( PyTuple_GetItem( arguments_, i ) );}