PyDict_SetItemString( result, "showsign", PyInt_FromLong( info->showSign() ? 1 : 0 ) ); PyDict_SetItemString( result, "joined", PyInt_FromLong( info->joined() ) ); PyDict_SetItemString( result, "guildtitle", QString2Python( info->guildTitle() ) );
PyDict_SetStolenItem( result, "showsign", PyInt_FromLong( info->showSign() ? 1 : 0 ) ); PyDict_SetStolenItem( result, "joined", PyInt_FromLong( info->joined() ) ); PyDict_SetStolenItem( result, "guildtitle", QString2Python( info->guildTitle() ) );
PyObject* wpGuild_getmemberinfo( wpGuild* self, PyObject* args ){	P_PLAYER player;	if ( !PyArg_ParseTuple( args, "O&:guild.getmemberinfo(player)", PyConvertPlayer, &player ) )	{		return 0;	}	cGuild::MemberInfo* info = self->guild->getMemberInfo( player );	if ( !info )	{		PyErr_SetString( PyExc_RuntimeError, "The supplied character is not a member of this guild." );		return 0;	}	// Return a dictionary with two elements	PyObject* result = PyDict_New();	PyDict_SetItemString( result, "showsign", PyInt_FromLong( info->showSign() ? 1 : 0 ) );	PyDict_SetItemString( result, "joined", PyInt_FromLong( info->joined() ) );	PyDict_SetItemString( result, "guildtitle", QString2Python( info->guildTitle() ) );	return result;}